I am having trouble learning queries. The sub following runs, but it don't update the table. Please help.
#Sub modQue_addNewLocation() ' update query Dim db As DAO.Database
Set db = CurrentDb
Dim dateDate As Date
Dim strLineNo As String
Dim strSQL As String
dateDate = DateValue("9/27/2025")
strLineNo = "104"
strSQL = "UPDATE tblCalendar SET fLngProposalNo = 20250870 " _
& "WHERE fDate = #" & dateDate & "# AND fStrLineNo = ' & strLineNo & ';"
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
End Sub#
The fields in the table are fDate , fStrLineNo . and fLngProposalNo .
I am trying to put the proposal number (20250870 ) in the table. Thank you.