mykil
My Life is Boring
- Local time
- Tomorrow, 02:48
- Joined
- Aug 16, 2011
- Messages
- 117
Hi Everyone.
I have a Database for Logging students every time they want to use the Computer Laboratory that works perfectly fine. I have a StudentForm where I input all the students data and a LoginForm where I add them whenever they used the Computer Laboratory that is by entering their IDnumber and then it will automatically supply the student's Info using the Dlookup Codes.
I want to change the ID number format from:
Sample ID Number:
2017-001 to 2017-0000001
So after changing the ID number format it shows this error:
Run-time error '3464'
Data Type mismatch in criteria expression
The code below doesn't work with the New ID number format.
Anyone who knows how to fix this problem?
I would really appreciate your help.
If you want to know more please let me know.
Thanks a lot.
:banghead::banghead::banghead:
I have a Database for Logging students every time they want to use the Computer Laboratory that works perfectly fine. I have a StudentForm where I input all the students data and a LoginForm where I add them whenever they used the Computer Laboratory that is by entering their IDnumber and then it will automatically supply the student's Info using the Dlookup Codes.
I want to change the ID number format from:
Sample ID Number:
2017-001 to 2017-0000001
So after changing the ID number format it shows this error:
Run-time error '3464'
Data Type mismatch in criteria expression
The code below doesn't work with the New ID number format.
Code:
Private Sub FillUnboundedTextBoxes(IDStud)
Me.txtLastName = DLookup("[LastName]", "tblStudents", "StudentID=" & IDStud)
I would really appreciate your help.
If you want to know more please let me know.
Thanks a lot.
:banghead::banghead::banghead:
Last edited: