jonnymenthol
Registered User.
- Local time
- Today, 21:54
- Joined
- Oct 31, 2001
- Messages
- 58
Hello,
Can anyone shed any light on why the following code will not work when I split my DB into Front end / Back End.
It worked fine when all tables and everything were local, but since the split, it just won't work.
I don't receive an error, the button it is linked to just doesn't function.
Thanks.
---------------------------
----------------------------------------
Thanks.
J
Can anyone shed any light on why the following code will not work when I split my DB into Front end / Back End.
It worked fine when all tables and everything were local, but since the split, it just won't work.
I don't receive an error, the button it is linked to just doesn't function.
Thanks.
---------------------------
Code:
Dim curdb As Database
Dim currst As Recordset
Set curdb = CurrentDb
Set currst = curdb.OpenRecordset("TblUsers")
currst.Index = "PrimaryKey"
currst.Seek "=", Me.TxtUsername, Me.TxtPassword
If Counter <= 2 Then
If currst.NoMatch Then
MsgBox "The Password You Have Entered Is Invalid, Please Try Again!", VbOKOnly + vbCritical, "Error"
TxtPassword.Value = ""
TxtPassword.SetFocus
Counter = Counter + 1
Else
DoCmd.OpenForm "FrmLoading"
DoCmd.OpenForm "FrmPassword", , , , , acHidden
End If
Else
MsgBox "you have entered an incorrect password 3 times", vbOKOnly
DoCmd.Close
End If
----------------------------------------
Thanks.
J
Last edited by a moderator: