SmartCarFun
Registered User.
- Local time
- Today, 17:06
- Joined
- Feb 17, 2012
- Messages
- 25
Hi,
I'm guessing this is rather simple but it's not working as I thought it might...
I have a local table and a linked table, both have only one record and I want to verify one table has a greater value than the other before allowing the user entry... so it looks like this.....
The first issue is [ReleaseNo] >= [tblVersionServer].[VersionNumber] is wrong...
Next I would love to put a 5 second limit on msgbox - FORCING docmd.quit so a user doesn't leave the application open and walk away or go home.....
I tried Application.Wait Now + TimeValue("00:00:5") but that was a feeble attempt....
Thanks in advance for your help
DM
I'm guessing this is rather simple but it's not working as I thought it might...
I have a local table and a linked table, both have only one record and I want to verify one table has a greater value than the other before allowing the user entry... so it looks like this.....
Code:
Private Sub Form_Open(Cancel As Integer)
If [ReleaseNo] >= [tblVersionServer].[VersionNumber] Then
DoCmd.Close acForm, "DBopen1"
DoCmd.OpenForm "DBopen2"
Else
MsgBox "Incorrect version number, please update application", vbInformation, "Quiting Database"
DoCmd.Quit
End If
End Sub
The first issue is [ReleaseNo] >= [tblVersionServer].[VersionNumber] is wrong...
Next I would love to put a 5 second limit on msgbox - FORCING docmd.quit so a user doesn't leave the application open and walk away or go home.....
I tried Application.Wait Now + TimeValue("00:00:5") but that was a feeble attempt....
Thanks in advance for your help
DM