Hi,
I'm trying to check whether a field [Letter] in a table "Not Started List" has a specific value, 6M or 30M, if either of these values are present then I want to continue running a macro, otherwise msgbox 'No data, quitting'. Can I use DCount for this, or do I need something else? At the moment, my macro always runs as there are always other values in the Letter field.
If DCount("[Letter]", "Not Started List") > 0 Then
DoCmd.RunMacro ("Run 6 Month Not started Query")
else.....
Thanks for any pointers,
FrankyG
I'm trying to check whether a field [Letter] in a table "Not Started List" has a specific value, 6M or 30M, if either of these values are present then I want to continue running a macro, otherwise msgbox 'No data, quitting'. Can I use DCount for this, or do I need something else? At the moment, my macro always runs as there are always other values in the Letter field.
If DCount("[Letter]", "Not Started List") > 0 Then
DoCmd.RunMacro ("Run 6 Month Not started Query")
else.....
Thanks for any pointers,
FrankyG