Insert Data Mismatch Error

burrina

Registered User.
Local time
Today, 16:24
Joined
May 10, 2014
Messages
972
Not sure what I'm missing here!

PHP:
Dim strSQL As String    'Add Absence Data to tblHour.
                
strSQL = "INSERT INTO tblHour (WorkDate,EmployeeID,Hours) "
strSQL = strSQL & "VALUES (#" & Me.AbsenceDteTo & "#, '" & Me.EmployeeID & "', '" & Me.txtAbsHrs & "')"
        CurrentDb.Execute strSQL, dbFailOnError

tblEmployeeTime
Hours  is a Number		 Double
WorkDate  is a Date/Time	 ShortDate
EmployeeID is a Number/FakeKey   LongInteger


tblHour
EmployeeID	Number		LongInteger
Hours		Number		Double
WorkDate	Date/Time	ShortDate
DataType Mismatch Error
 
You don't want single quotes around the second or third values.
 
Thank You, I appreciate it,
 

Users who are viewing this thread

Back
Top Bottom