silvrerado
Technical User
Hi, my routine shows an error message "Runtime error '2465' Database can't find the field '|' referred to in your expression." The routine is place in the Startup Form when it is loaded.
[Tbl_WkSch]![NextDate] = Table with a field in it.
Date - Weekday(Date) + 9) = Next week Monday
The "(Date - Weekday(Date) + 9)" is copied from the SQL view
which I guess is incorrect since the Date does not have a bracket
Tha Action query is suppose to fire up if the condition met.
Private Sub Form_Load()
If ([Tbl_WkSch]![NextDate] <= (Date - Weekday(Date) + 9)) Then
DoCmd.SetWarnings False
DoCmd.RunSQL "SELECT Action query ....."
DoCmd.SetWarnings True
Else
End If
End Sub
Any help will be appreciated. Thanks
silvre_rado
[Tbl_WkSch]![NextDate] = Table with a field in it.
Date - Weekday(Date) + 9) = Next week Monday
The "(Date - Weekday(Date) + 9)" is copied from the SQL view
which I guess is incorrect since the Date does not have a bracket
Tha Action query is suppose to fire up if the condition met.
Private Sub Form_Load()
If ([Tbl_WkSch]![NextDate] <= (Date - Weekday(Date) + 9)) Then
DoCmd.SetWarnings False
DoCmd.RunSQL "SELECT Action query ....."
DoCmd.SetWarnings True
Else
End If
End Sub
Any help will be appreciated. Thanks
silvre_rado