|
|
|
|
![]() ![]() |
Apr 8 2006, 10:12 AM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 12 Joined: 8-April 06 Member No.: 12,584 |
Hi anyone can help me with making a form.
These are the case; I am using Ms. Access XP, and a database for using as a admission database for new students. And using couple table for the base, however I want that when the operator is trying to add a students (add button), a form will came up, and asking for his/her ID and password and Cliking the LOGIN button and lookup for the ID and Password which stored in a "user" table on the database. When the ID and Password 're correct the function for adding students can be processed, but when the ID and Password uncorrect came the pop-up message and is asking the ID and Password Again. That is all need to know, Please help me with this one. Regards Farhan |
|
|
|
Apr 8 2006, 03:17 PM
Post
#2
|
|
|
Advanced Member Group: Members Posts: 105 Joined: 22-December 05 Member No.: 10,229 |
Hi anyone can help me with making a form. These are the case; I am using Ms. Access XP, and a database for using as a admission database for new students. And using couple table for the base, however I want that when the operator is trying to add a students (add button), a form will came up, and asking for his/her ID and password and Cliking the LOGIN button and lookup for the ID and Password which stored in a "user" table on the database. When the ID and Password 're correct the function for adding students can be processed, but when the ID and Password uncorrect came the pop-up message and is asking the ID and Password Again. That is all need to know, Please help me with this one. Regards Farhan This is pretty easy, you'll just need to add a function to the add button on your form. I hope you are familar with basic Visual Basic syntax. I'll help you with the sudo code for this, but this is just a generalized idea of what you need to do. And also, are you familiar with storing SQL results in result sets? if not google that. CODE String sql_checkUser = "SELECT password FROM user_table WHERE username = username" //store this result in a result set //check to see if the result set has ANY value if (result set != null) //then we have a valid user name and password //process the add user function else //result set is null, so the user name and password didn't match //pop up window, to prompt user end if Again this is just a general idea of what you want to do, I haven't coded in VB in a long time so I don't remember the syntax of things exactly, but if you find the code you want to use and put them where I commented lines for them, you should be good to go. This post has been edited by snutz411: Apr 8 2006, 03:18 PM |
|
|
|
Apr 10 2006, 05:32 AM
Post
#3
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 6 Joined: 15-March 06 Member No.: 11,987 |
Hi anyone can help me with making a form. These are the case; I am using Ms. Access XP, and a database for using as a admission database for new students. And using couple table for the base, however I want that when the operator is trying to add a students (add button), a form will came up, and asking for his/her ID and password and Cliking the LOGIN button and lookup for the ID and Password which stored in a "user" table on the database. When the ID and Password 're correct the function for adding students can be processed, but when the ID and Password uncorrect came the pop-up message and is asking the ID and Password Again. That is all need to know, Please help me with this one. Regards Farhan i think , you should do it by VB |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 11:33 AM |