Hi,
My database using Microsoft Access set the field A as data type Yes/No. When I try to retrieve the data back to my VB screen to got this error "Run-time error '380': Invalid property value "
The code below is how i retrieve the value A. Anyone know why? ANything miss out?
moCommand.CommandType = adCmdText
moCommand.ActiveConnection = moConnection
moCommand.CommandText = _
"SELECT A FROM TABLE WHERE TABLEID = " & sInputDat & " ;"
Set rsMain = moCommand.Execute
Me.chkA = rsMain!A
My database using Microsoft Access set the field A as data type Yes/No. When I try to retrieve the data back to my VB screen to got this error "Run-time error '380': Invalid property value "
The code below is how i retrieve the value A. Anyone know why? ANything miss out?
moCommand.CommandType = adCmdText
moCommand.ActiveConnection = moConnection
moCommand.CommandText = _
"SELECT A FROM TABLE WHERE TABLEID = " & sInputDat & " ;"
Set rsMain = moCommand.Execute
Me.chkA = rsMain!A