Imdabaum
02-15-2007, 11:57 AM
I'm not sure what I messed up on in this statement, but I'm trying to add a note into a table.
Dim today as Date
today = Date
sqlUpdate = "INSERT INTO tblPropertiesUpdates (PropertyID, PropertyNumber, NoteDate, entryType, RER, MemoPart, Memo) VALUES (" & Me.txtID &", '" & Me.PropertyNumber & "', " & FormatDateTime(today, vbShortDate) & ", '" & Me.cboNoteType.Column(1) & "', '" & Me.RER & "', '" & Me.notePart & "', '" & Me.newNote & "');"
The table's date is set as a shortdate, but anytime I insert a statement the default date of 12/30/1899 is entered instead. Any ideas what I'm missing here?
:banghead:
Dim today as Date
today = Date
sqlUpdate = "INSERT INTO tblPropertiesUpdates (PropertyID, PropertyNumber, NoteDate, entryType, RER, MemoPart, Memo) VALUES (" & Me.txtID &", '" & Me.PropertyNumber & "', " & FormatDateTime(today, vbShortDate) & ", '" & Me.cboNoteType.Column(1) & "', '" & Me.RER & "', '" & Me.notePart & "', '" & Me.newNote & "');"
The table's date is set as a shortdate, but anytime I insert a statement the default date of 12/30/1899 is entered instead. Any ideas what I'm missing here?
:banghead: