Button click event

tijotomjoy

Registered User.
Local time
Today, 08:54
Joined
May 14, 2010
Messages
10
Hi
im a beginner in microsoft access. I need to create an online movie booking application with front end and back end in access.
Created a login form for front end, but have no idea to program button click event. The main trouble for me is the query to verify whether the username is in table or not. Can anyone help me plss...
 
What do you want the button to do??
 
Hi
JANR thx for reply

On button click search the table 'Customer' whether the username and password is valid..
 
Look at this thread see if you can use whats on there

http://www.access-programmers.co.uk/forums/showthread.php?t=126131&highlight=dvd

also if you want a login page then look here http://www.databasedev.co.uk/login.html


Thxx that link was helpful..
I have created all tables and forms needed to add data. My problem was the search through the database. Think the problem is with DLookup().
can u explain this function plss.. When i click the button nothing happens
 
Last edited:
You would want something like this
Code:
employeepassword= DLookup("EmployeeUserPass", "tbl_Employee",  "[EmployeeUserName]= """ & txtName & """")
To get the user password

See this thread on changing a users password. You should be able to use the code on there to make a login form

http://www.access-programmers.co.uk/forums/showthread.php?t=189408&highlight=login


When i click the button it doesnt do anything. After i write the code, do i need to compile or do anything.
 
Whats your exact code behind the button?
 
Thxx rainman
it is working now..
there was a security warning and it was disabled.
donno just now i enabled it and it started working ...
 

Users who are viewing this thread

Back
Top Bottom