I am a beginner to VBA. I'm trying to write a statement that would check for a value of 2 in a field called STATUS in a table called QUIT. If it finds 2 it will quit the database. If it finds 1 it does nothing. The statement is on my switchboard.
IF "Quit.Status" = 2 Then
DoCmd.Quit
End IF
I've looked all through my manuals and getting frustrated since this should be easy. Any help would be appreciated.
SB
IF "Quit.Status" = 2 Then
DoCmd.Quit
End IF
I've looked all through my manuals and getting frustrated since this should be easy. Any help would be appreciated.
SB