当前位置:首页 » 学校课程 » 怎么用ACCESS做课程表

怎么用ACCESS做课程表

发布时间: 2020-12-16 11:07:23

⑴ 如何用asp+access实现课程表查询

<form name=form1 action=UserList.asp method=post target=_self>
<tbody>
<tr>
<td class=style5 height=30> 性别
<input name="sex" type="radio" value="男"> <img src="images/man.gif" width="8" height="12" hspace="1" vspace="1">
<input name="sex" type="radio" value="女" checked> <img src="images/women.gif" width="8" height="12" hspace="1" vspace="1">

年龄:
<select name=age_up>
<option value="0" selected>选择</option>
<option value=18>18</option>
<option
value=19>19</option>
<option
value=20>20</option>
<option
value=21>21</option>

</select>

<select name=age_down>
<option value="0" selected>选择</option>
<option value=18>18</option>
<option value=19>19</option>

</select>
身高:
<select
name=height_up>
<option value="0" selected>选择</option>
<option value=150>150</option>
<option
value=155>155</option>

</select>
照片
<input type=checkbox name="photo" value="yes">
<input name="submitok" type=hidden id="submitok" value="b">

</td>
</tr>
<tr>
<td class=style5 height=25>体重:
<select name=weight_up>
<option value="0" selected>选择</option>
<option
value=35>35</option>

</select>

<select
name=weight_down>
<option value="0"
selected>选择</option>
<option
value=35>35</option>
<option

<option
value=125>125</option>
</select>
公斤居住地:
<select
name=nationality
onChange=javascript:chgCountry(form1.to_city_id);>
<option value="">--请选择--</option>
<option
value="中国大陆" selected>中国大陆</option>
<option
value="香港">---香港</option>

<option value="埃及">埃及</option>
<option
value="南非">南非</option>
</select>
<select name=to_city_id>
<option value="" selected>--请选择--</option>
<option
value="北京">北京</option>
<option value="上海">上海</option>
<option value="天津">天津</option>
<option
value="重庆">重庆</option>
<option value="广东">广东</option>
<option value="广州">---广州</option>
<option
value="深圳">---深圳</option>
<option
value="珠海">---珠海</option>

</select>
<input type=image
height=29 width=93
src="images/search.gif"
value=开始搜索 border=0 name=smtSearch> </td>
</tr>
</form>
<%
function mainsql(submitok,keyname,age_up,age_down,photo2,kind,sex)'sql变量查询
dim a,sql,fstr,agekind
fstr="select username,birthday,sex,kind,grade,alltime,click,aboutus,photo_x,photo_d,photo_x_flag,photo_d_flag,regtime,refresh_time,flag from love_main order by refresh_time desc,regtime desc,grade desc"
If submitok="a" Then'按用户名搜索
a=trim(replace(keyname,"'","''"))
fstr="select username,birthday,sex,kind,grade,alltime,click,aboutus,photo_x,photo_d,photo_x_flag,photo_d_flag,regtime,refresh_time,flag from love_main where flag<>'0' and username like '%"&a&"%' order by refresh_time desc,regtime desc,grade desc"
Elseif submitok="b" Then
fstr="select username,birthday,sex,kind,grade,alltime,click,aboutus,photo_x,photo_d,photo_x_flag,photo_d_flag,regtime,refresh_time,flag,height_ from love_main where flag<>'0'"

'性别

fstr=fstr & "and sex='"&sex&"'"

'年龄
dim a18,a19
age_up=Clng("0"&Request("age_up"))
age_down=Clng("0"&Request("age_down"))

if age_up<>0 and age_down<>0 then
if age_up>=age_down then
a18=year(now())-age_up+1
a19=year(now())-age_down+1
fstr=fstr & "and (year(birthday)>="&a18&" and year(birthday)<="&a19&")"
else
a18=year(now())-age_up+1
a19=year(now())-age_down+1
fstr=fstr & "and (year(birthday)>="&a19&" and year(birthday)<="&a18&")"
end if
else

end if

'身高范围
dim height_up,height_down,heightall
height_up=Clng("0"&Request("height_up"))
height_down=Clng("0"&Request("height_down"))

if height_up<>0 and height_down<>0 then
if height_up>=height_down then
fstr=fstr & " and height_<="& height_up&" and height_>="& height_down
else
fstr=fstr & " and height_>="& height_up&" and height_<="& height_down
end if
elseif height_up<>0 Then
fstr=fstr & " and height_>="& height_up
elseIf height_down<>0 Then
fstr=fstr & " and height_<="& height_down

end if
'有照片
if photo2="yes" then
fstr=fstr & " and (((photo_x is not null or photo_x<>'') and photo_x_flag='1') or ((photo_d is not null or photo_d<>'') and photo_d_flag='1')) "
else
fstr=fstr
end if

'体重范围
dim weight_up,weight_down
weight_up=Clng("0"&Request("weight_up"))
weight_down=Clng("0"&Request("weight_down"))
if weight_up<>0 and weight_down<>0 then
if weight_up>=weight_down then
fstr=fstr & " and weight_<="& weight_up & " and weight_>="& weight_down
else
fstr=fstr & " and weight_>="& weight_up & " and weight_<="& weight_down
end if
elseif weight_up<>0 Then
fstr=fstr & " and weight_>="&weight_up
elseIf weight_down<>0 Then
fstr=fstr & " and weight_<="&weight_down

end if
'地区
Dim nationality
to_city_id=Replace(Trim(Request("nationality")),",","''")
if nationality<>"" then fstr=fstr & "and area='"&nationality&"'"
Dim to_city_id

to_city_id=Replace(Trim(Request("to_city_id")),",","''")
if to_city_id<>"" then fstr=fstr & "and area='"& to_city_id &"'"

'总和
fstr=fstr & " order by refresh_time desc,regtime desc,grade desc"

End if
mainsql=fstr
end function
%>
里面列表可以改过文字输入.
这样就可以查出来了.哎.累死了.

⑵ 想用asp+access 做一个中学课表系统 点击班级或者教师姓名列出课表信息,求各位大虾指点思路

其实原理是一样的,,你会做按班级查,把那代码复制过来不就行了,只版不过是要改变下where的条件,权按班级的,是where 班级字段='"&banji&"'" 那么按就老师名就是where 老师字段='"&teacher&"'"

按照安全性来说,,相同字段是班级不是很好,,当遇到特殊字符时就很容易出错,。。
首先在教师表里每位教师都是有唯一的ID的,所以最好是以教师ID来在这两个表做联动查询,在表
class_kebiao新建个教师teacherID的字段
查询表class_kebiao
查询语句
sql="select * from class_kebiao where teacherID="&你点击教师名称时传过来的教师ID&" order by id desc"

⑶ 用Access建立一个名为学籍管理系统有学生信息表和学生课程表

学号,学科号,是否考试,考试成绩,备注,其他在图中其他表中一致,考试成绩数值型,3位整数,两位小数。备注,字符型256个字节。SQL语句,select 查找!

⑷ 求计算机二级ACCESS(高等教育出版社的书)联系时用的教师表、学生表、选课表、课程表等

我熟悉ACCESS。但你的问题不明白。是要“二级ACCESS(高等教育出版社的书)”。还是要做后面四个数据表??????

⑸ 数据库中建立学生表课程表选课表及其联系

以 access 为例,建立数据表如下:

1、学生表

⑹ 用Access建立一个名为“学籍管理系统”的空数据库,并在数据库中建立第一个表对象:课程表。

⑺ access2003中基于课程表查询所有必修课怎么查询

你这样抄问问题 不好回答袭,应该把你的表结构(都有哪些字段 各表达的是什么 特别是 你要查询的主要字段)表达出来 才好 给你直接回答……另外你想用什么方式来做查询?SQL 语句?还是 查询设计视图来设计这个查询?

用创建一个查询的方式 来选择 你的课程表 在设计视图中 加入 你要显示的必要字段 然后 以课程类型(是否必修课的字段)设置 条件 必修课……

⑻ access中,如何在学生课表中查询显示学号为2开头的学生

like "2" & "*"

⑼ 1. 学生成绩管理系统 设计一个ACCESS数据库 至少要有4个表:学生表,教师表,课程表,成绩表

你这个好像软考里面的设计题啊,这里有历专年真题属http://www.rkpass.cn/u.jsp?u=300765

⑽ access里,新建查询查询课程表中学时为80或者课程号以30开头的所有课程信息

摘要所谓管理,是指组织中的管理者,通过实施计划、组织、人员配备、领导、控制等职能来版协调他人的活动,是他人同自权己一起实现既定目标的活动过程。管理学是系统研究管理活动的基本规律和一般方法的科学,它是适应现代社会化大生产的需要产生的,它的目的是:研究在现有的条件下,如何通过合理的组织和配置人、财、物等因素,提高生产力的水平。管理学是一门综合性的交叉学科。管理过程的动态性、复杂性和管理对象的多样性决定了管理所要借助的知识、方法和手段要多样化。

热点内容
武汉大学学生会辅导员寄语 发布:2021-03-16 21:44:16 浏览:612
七年级学生作文辅导学案 发布:2021-03-16 21:42:09 浏览:1
不屑弟高考成绩 发布:2021-03-16 21:40:59 浏览:754
大学毕业证会有成绩单 发布:2021-03-16 21:40:07 浏览:756
2017信阳学院辅导员招聘名单 发布:2021-03-16 21:40:02 浏览:800
查询重庆2018中考成绩查询 发布:2021-03-16 21:39:58 浏览:21
结业考试成绩怎么查询 发布:2021-03-16 21:28:40 浏览:679
14中医医师资格笔试考试成绩查分 发布:2021-03-16 21:28:39 浏览:655
名著赏析课程标准 发布:2021-03-16 21:27:57 浏览:881
北京大学商业领袖高端培训课程 发布:2021-03-16 21:27:41 浏览:919