Ok,
I have 3 stores to send a one report on click command botton. I need to write in the VBA if the store 1 is Null in the table then proceed with other.
How I write a correct sintax for Null value store number if any store is Null then pass to the other line instruction.
Any Help?
I have 3 stores to send a one report on click command botton. I need to write in the VBA if the store 1 is Null in the table then proceed with other.
Code:
Dim look As String
look = DLookup("[StoreNum]","tblStore")
IF look = "1" then
DoCmd.SendObject acReport, "1", acFormatSNP, "[EmployeeName]", "[SupervisorName]", "[Subject]","[Email]",
Else
IF look = "2" then
DoCmd.SendObject acReport, "2", acFormatSNP, "[EmployeeName]", "[SupervisorName]", "[Subject]","[Email]",
Else
IF look = "3" then
DoCmd.SendObject acReport, "3", acFormatSNP, "[EmployeeName]", "[SupervisorName]", "[Subject]","[Email]",
End If
Any Help?
Comment