M
Mike Thomas
When to use Date and when to used Date() has bothered me for some time.
In a VB module, I have this snippet:
strSQL = "UPDATE part_cost SET quoteend = Format(date-1,'yyyymmdd')
Where......."
It worked fine fior a couple of days, then I got an "Expected Parameters..."
error. I changed the line to :
strSQL = "UPDATE part_cost SET quoteend = Format(date()-1,'yyyymmdd')
Where......."
Now it works.
Where is date, and where is date() used?
Many thanks
Mike Thomas
In a VB module, I have this snippet:
strSQL = "UPDATE part_cost SET quoteend = Format(date-1,'yyyymmdd')
Where......."
It worked fine fior a couple of days, then I got an "Expected Parameters..."
error. I changed the line to :
strSQL = "UPDATE part_cost SET quoteend = Format(date()-1,'yyyymmdd')
Where......."
Now it works.
Where is date, and where is date() used?
Many thanks
Mike Thomas