B
Bucyruss
Guest
This has got me a bit confused. According to Access on-line help, the proper command to delete a record is:
DELETE * FROM
WHERE Field = 'Some Value'; OR
DELETE [Table.*] FROM
WHERE Field = 'Some Value'
Is there some reason this command cannot be used at the click event on a command button? I have tried every variation I can think of and this command will not compile (in "*" only form, compiling halts at the *, in [Table.*] form, the compiling halts at 'FROM'.
All I am trying to do is to enable the user to delete a single record by pressing a command button (record to be deleted based on an existing value on the form). This seems like simple stuff, but it will not work and I'm at a loss to figure out why.
DELETE * FROM
DELETE [Table.*] FROM
Is there some reason this command cannot be used at the click event on a command button? I have tried every variation I can think of and this command will not compile (in "*" only form, compiling halts at the *, in [Table.*] form, the compiling halts at 'FROM'.
All I am trying to do is to enable the user to delete a single record by pressing a command button (record to be deleted based on an existing value on the form). This seems like simple stuff, but it will not work and I'm at a loss to figure out why.