annsolomon
MIS
Dim CurrentCycleDate As Date
CurrentCycleDate = DLookup("CycleDate", "tblCurrentCycleDate"
DoCmd.RunSQL "Delete [Tables]![tblHistory].[CycleDate] _
& WHERE tblHistory.CycleDate= #" & CurrentCycleDate _
& "# from tblHistory;"
I just can't seem to get a handle on properly writing SQL statements in a VBA module. Can someone help? I've searched the forums, played with single and double quotes, but just can't seem to get this right. Ann
CurrentCycleDate = DLookup("CycleDate", "tblCurrentCycleDate"
DoCmd.RunSQL "Delete [Tables]![tblHistory].[CycleDate] _
& WHERE tblHistory.CycleDate= #" & CurrentCycleDate _
& "# from tblHistory;"
I just can't seem to get a handle on properly writing SQL statements in a VBA module. Can someone help? I've searched the forums, played with single and double quotes, but just can't seem to get this right. Ann