B
BFish via AccessMonster.com
I have been working on this for two days looking at "help" and other postings
and just not getting a handle on it.
I'm using a command button on click event to check for a checkbox = true, if
not then run a sql to reset to true. With reading other postings I've gotten
to this point:
Dim strSQL As String
Set db = CurrentDb
strSQL = "UPDATE tblPhone SET PrimaryPhone = -1 WHERE"
strSQL = strSQL & " PhoneID=" & Forms("frmAddPhone").Controls("txtPhoneID")
db.Execute strSQL, dbFailOnError
Set db = Nothing
Using debug dbFailOnError is 128 and strSQL with have correct PhoneID value.
Any help as always is greatly aprreciated.
Thanks,
Bill Fischer
and just not getting a handle on it.
I'm using a command button on click event to check for a checkbox = true, if
not then run a sql to reset to true. With reading other postings I've gotten
to this point:
Dim strSQL As String
Set db = CurrentDb
strSQL = "UPDATE tblPhone SET PrimaryPhone = -1 WHERE"
strSQL = strSQL & " PhoneID=" & Forms("frmAddPhone").Controls("txtPhoneID")
db.Execute strSQL, dbFailOnError
Set db = Nothing
Using debug dbFailOnError is 128 and strSQL with have correct PhoneID value.
Any help as always is greatly aprreciated.
Thanks,
Bill Fischer