E
esi
Trying to use the following code but keep getting a type mismatch error. My
[Counted] field is a yes/no field
Dim stDocName As String
stDocName = "UploadMacro"
If DCount("*", "DrugTemp") = DCount("*", "DrugTemp", "[Counted]=True")
Then
DoCmd.RunMacro stDocName
Else
MsgBox "Please be sure that all items have been counted before
uploading", "vbOKOnly","Error"
End If
[Counted] field is a yes/no field
Dim stDocName As String
stDocName = "UploadMacro"
If DCount("*", "DrugTemp") = DCount("*", "DrugTemp", "[Counted]=True")
Then
DoCmd.RunMacro stDocName
Else
MsgBox "Please be sure that all items have been counted before
uploading", "vbOKOnly","Error"
End If