G
Guest
I would like to do a select count statement and display the results in a
msgbox.
Is that possible?
ex
SQL = " Select count(StoreNum) " & _
"FROM GBPEXCFMASTERFLIFLC INNER JOIN TRANSFER_MEMBER " & _
"ON GBPEXCFMASTERFLIFLC.StoreNum = TRANSFER_MEMBER.CMCUNO " & _
"WHERE (((GBPEXCFMASTERFLIFLC.StoreNum)<>'0266' " & _
"And (GBPEXCFMASTERFLIFLC.StoreNum)<>'0673' " & _
"And (GBPEXCFMASTERFLIFLC.StoreNum)<>'0306' " & _
"And (GBPEXCFMASTERFLIFLC.StoreNum)<>'3060')) "
DoCmd.RunSQL (SQL)
msgbox (" 101 records will be deleted, do you want to delete these records?")
Where the 101 would be the result of the above select statement.
Or is there a better approach?
Any suggestions would be greatly appreciated.
msgbox.
Is that possible?
ex
SQL = " Select count(StoreNum) " & _
"FROM GBPEXCFMASTERFLIFLC INNER JOIN TRANSFER_MEMBER " & _
"ON GBPEXCFMASTERFLIFLC.StoreNum = TRANSFER_MEMBER.CMCUNO " & _
"WHERE (((GBPEXCFMASTERFLIFLC.StoreNum)<>'0266' " & _
"And (GBPEXCFMASTERFLIFLC.StoreNum)<>'0673' " & _
"And (GBPEXCFMASTERFLIFLC.StoreNum)<>'0306' " & _
"And (GBPEXCFMASTERFLIFLC.StoreNum)<>'3060')) "
DoCmd.RunSQL (SQL)
msgbox (" 101 records will be deleted, do you want to delete these records?")
Where the 101 would be the result of the above select statement.
Or is there a better approach?
Any suggestions would be greatly appreciated.