Trying to delete record from access table. I can connect to the database but when I delete I get -1 returned.
STORE SQLSTRINGCONNECT("Driver={Microsoft Access Driver (*.mdb)};Dbq=" + DataDrive() + DataPath() + "VfFeatures.mdb;Uid=Admin;Pwd=;") TO Connected
If Connected < 0
MsgBox("Record could not be deleted")
Else
t = SQLEXEC(Connected, 'Delete FROM Features Where Features.ClubId = ' + AllTrim(.txtMemberId.value))
EndIF
STORE SQLSTRINGCONNECT("Driver={Microsoft Access Driver (*.mdb)};Dbq=" + DataDrive() + DataPath() + "VfFeatures.mdb;Uid=Admin;Pwd=;") TO Connected
If Connected < 0
MsgBox("Record could not be deleted")
Else
t = SQLEXEC(Connected, 'Delete FROM Features Where Features.ClubId = ' + AllTrim(.txtMemberId.value))
EndIF