I have the following SELECT within a module.
What I want to do is update the field census date based on the results of the Select Case.
So the module will update the field Census_date to the str_censusdate. But how do I write this in the Update query?
Select Case intAnswer
Case "Apr": str_censusdate = "20030430"
Case "May": str_censusdate = "20030531"
Case "Jun": str_censusdate = "20030630"
Case Else: Exit Function
End Select
strSQL = "UPDATE [WL CMDS (RNA00)] SET Census_Date = str_censusdate " & "WHERE Census_Date <> str_censusdate"
Create.Execute strSQL
What I want to do is update the field census date based on the results of the Select Case.
So the module will update the field Census_date to the str_censusdate. But how do I write this in the Update query?
Select Case intAnswer
Case "Apr": str_censusdate = "20030430"
Case "May": str_censusdate = "20030531"
Case "Jun": str_censusdate = "20030630"
Case Else: Exit Function
End Select
strSQL = "UPDATE [WL CMDS (RNA00)] SET Census_Date = str_censusdate " & "WHERE Census_Date <> str_censusdate"
Create.Execute strSQL