Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Help Me With My MS-Access Program
preman pasar bog...
post Apr 8 2006, 10:12 AM
Post #1


Newbie [ Level 2 ]
Group Icon

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 wink.gif
Go to the top of the page
 
+Quote Post
snutz411
post Apr 8 2006, 03:17 PM
Post #2


Advanced Member
Group Icon

Group: Members
Posts: 105
Joined: 22-December 05
Member No.: 10,229



QUOTE(preman pasar bogor @ Apr 8 2006, 06:12 AM) *

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 wink.gif



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
Go to the top of the page
 
+Quote Post
phduchuy
post Apr 10 2006, 05:32 AM
Post #3


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 6
Joined: 15-March 06
Member No.: 11,987



QUOTE(preman pasar bogor @ Apr 8 2006, 10:12 AM) *

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 wink.gif

i think , you should do it by VB
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Google Adsense(24)
  2. Clicksor(7)
  3. Do You Program/code Your Own Games(11)
  4. Wuts A Good Game Maker Program?(12)
  5. Sharing Files In Windows Xp Home(15)
  6. Favorite Graphics Program?(68)
  7. Which Virus-protection Program Is The Best?(18)
  8. A Free Graphic Design Program That Could Equal Photoshop?(35)
  9. VB6-MS Access Question(8)
  10. VB.NET / MS Access Question(6)
  11. VB.NET: MS-Access Interaction Tutorial (Part I)(18)
  12. VB.NET & MS Access Issue(3)
  13. Gba Game Program(5)
  14. Firefox 2(4)
  15. C++: Basic Classes(5)
  1. Cracking Wireless Access Point Password?(22)
  2. Best Free Anti-virus Program(22)
  3. Access(17)
  4. Best Program To Tune Up An Old Computer?(9)
  5. Domain Name Is Not Assigned To Ip. Access Cpanel With Ip Not With Domain Name.(6)
  6. Designing A Summer Running Program(1)
  7. C++ Meters To Feet And Feet To Meters Program(0)
  8. Main Trap17 Site Is Down?(0)
  9. Accessing Ms Access Database From A Centralized Location?(5)
  10. Database Access On Remote Server W/jsp(0)
  11. Access Denied As Admin On Xp, Services Troubles(4)
  12. Ssh Access ?(2)
  13. Cpanel Error When Loggin In...(4)


 



- Lo-Fi Version Time is now: 11th October 2008 - 11:33 AM