Llama
Tank
- Joined
- Nov 8, 2004
- Messages
- 3,148
- Reaction score
- 2
I need to write some code in VBA and the internet is useless.
I have a database with various tables, one called ' tblWorkset'
In it are various columns such as "WorksetID" "TeacherID" "ClassID"
I want to write some code that if I click a button on a form, it searches based on a text box that's also in that form.
Anyone know how I'd do this? I have no idea of the syntax of VB / VBA.
I also have an algorithm for a log in procedure but I have no idea how to turn it to VBA.
Input LogID
Input Password
Select Usermode (Teacher/Pupil)(Could do 2 sep login forms i dont care)
IF Usermode = Student then StudentTbl = assigned table.
Else TeacherTbl = assigned table.
Endif
IF UserID = Assigned UserID. THEN
IF Password = Assigned Password THEN open menu form.
Else "Password Incorrect" clear form,
Else "UserID incorrect" clear form,
End IF
End IF.
Any ideas for either of these, guys & gals?
I have a database with various tables, one called ' tblWorkset'
In it are various columns such as "WorksetID" "TeacherID" "ClassID"
I want to write some code that if I click a button on a form, it searches based on a text box that's also in that form.
Anyone know how I'd do this? I have no idea of the syntax of VB / VBA.
I also have an algorithm for a log in procedure but I have no idea how to turn it to VBA.
Input LogID
Input Password
Select Usermode (Teacher/Pupil)(Could do 2 sep login forms i dont care)
IF Usermode = Student then StudentTbl = assigned table.
Else TeacherTbl = assigned table.
Endif
IF UserID = Assigned UserID. THEN
IF Password = Assigned Password THEN open menu form.
Else "Password Incorrect" clear form,
Else "UserID incorrect" clear form,
End IF
End IF.
Any ideas for either of these, guys & gals?