Hello
Can anyone tell me where I am going wrong with the date part of this
lsSQL = ""
lsSQL = lsSQL & " INSERT INTO Tbl_ContactDetails ( CompanyRef, Forename, Surname, CreatedBy, CreatedWhen, MainContact ) "
lsSQL = lsSQL & " VALUES ( " & ICompanyRef & ", '" & lsForenames & "', '" & lsSurname & "', '" & SUser & "', 'Date()', " & False & ")"
It is returning the following:
INSERT INTO Tbl_ContactDetails ( CompanyRef, Forename, Surname, CreatedBy, CreatedWhen, MainContact ) VALUES ( 0, '', '', '', #Date()#, False)
Dont worry about the "" blanks (there is another step to the code) - I'm just wondering how to get the date to show as the current date??
Thanks
Can anyone tell me where I am going wrong with the date part of this
lsSQL = ""
lsSQL = lsSQL & " INSERT INTO Tbl_ContactDetails ( CompanyRef, Forename, Surname, CreatedBy, CreatedWhen, MainContact ) "
lsSQL = lsSQL & " VALUES ( " & ICompanyRef & ", '" & lsForenames & "', '" & lsSurname & "', '" & SUser & "', 'Date()', " & False & ")"
It is returning the following:
INSERT INTO Tbl_ContactDetails ( CompanyRef, Forename, Surname, CreatedBy, CreatedWhen, MainContact ) VALUES ( 0, '', '', '', #Date()#, False)
Dont worry about the "" blanks (there is another step to the code) - I'm just wondering how to get the date to show as the current date??
Thanks
