Can any one tell me why I get a type mismatch here ?
private sub text78_keydown(keycode as integer, shift as integer)
dim k as string
if keycode = vbkeyreturn then
k = me.text78.text
docmd.openform "address query", acnormal,,,"[surname] = " & k,acformreadonly, acwindownormal
end if
end sub
Run Time Error 13 : Type Mismatch on docmd line ? think it is to do with ' &
k' part
gregor
private sub text78_keydown(keycode as integer, shift as integer)
dim k as string
if keycode = vbkeyreturn then
k = me.text78.text
docmd.openform "address query", acnormal,,,"[surname] = " & k,acformreadonly, acwindownormal
end if
end sub
Run Time Error 13 : Type Mismatch on docmd line ? think it is to do with ' &
k' part
gregor
Last edited: