S
shane
I'm using the following code
Private Sub shift_AfterUpdate()
dim update key as string
updatekey = "insertinto me.foreignkey" & "values('" & Me.pdate&
'"&'"&me.shift&"')"
DoCmd.RunSQL updatekey
End Sub
pdate is formatted as a date
shift is formatted as text
foreignkey is formatted as text
How can I make it so that I do not get a datatype error?
Thanks in advanced.
Private Sub shift_AfterUpdate()
dim update key as string
updatekey = "insertinto me.foreignkey" & "values('" & Me.pdate&
'"&'"&me.shift&"')"
DoCmd.RunSQL updatekey
End Sub
pdate is formatted as a date
shift is formatted as text
foreignkey is formatted as text
How can I make it so that I do not get a datatype error?
Thanks in advanced.