I am in VBA and trying to reference a subform field but get an compile error.
The table in the subfile is being queried as an rs.
The comparison field name in the table is saturdaystart. In the table, saturdaystart is defined as short date. IN the VBA, saveend is DIM as Date.
This is the code that errors:
The table in the subfile is being queried as an rs.
The comparison field name in the table is saturdaystart. In the table, saturdaystart is defined as short date. IN the VBA, saveend is DIM as Date.
This is the code that errors:
Code:
savestart = rs!SaturdayStart
saveend = rs!FridayEnd
If count > 1 And (Forms![Rates Subform]!SaturdayStart <= saveend) Then
MsgBox ("Start Date must be Greater Than prior End Date")
Last edited: