Hi
Just when I thought I was getting somewhere I leave it for a few days, come back, and feel I am back at square one!
I have put the following bit of code behind a form and it won't work.
I strongly suspect I have some of my quotation marks or ampersands in the wrong sequence. I have tried playing around them but it has deteriorated into random effort. Could someone please point me in the right direction?
txtStopD is a date and txtStopCnt is a long integer.
Thanks in anticipation!
Best wishes
Malcy
Just when I thought I was getting somewhere I leave it for a few days, come back, and feel I am back at square one!
I have put the following bit of code behind a form and it won't work.
Code:
strSQL = "UPDATE tblScriptSupply SET tblScriptSupply.strSupTxt = ""STOPPED"", tblScriptSupply.bSupStop = -1 " & _
"WHERE (((tblTmpSessStop.lngStopCnt =" & Me.txtStopCnt & ") AND (tblScriptSupply.dtmSupDate > #" & Me.txtStopD * "#)));"
cnn.Execute strSQL
txtStopD is a date and txtStopCnt is a long integer.
Thanks in anticipation!
Best wishes
Malcy