Hi all!
I have a Acc2000 database running with the main window hidden and all forms 'pop-up'.
I have one form, based on a query, that is giving me troubles with record deletion.
Before going to the hidden window setup, my users could simply use the 'record selecters' of the form and right click/cut to delete a specific record. This no longer works (selection seems to work, but the cut/copy/paste dialog is no longer visible).
Since going back to a non-hidden window is not an option, I was wondering if anyone could help me out.
How can I take an SQL statement, under a command button, like this partial one
and make the 'where' statement indicate the selected record of the currently open form?
Something like this:
Thanks in advance!
- Turb
I have a Acc2000 database running with the main window hidden and all forms 'pop-up'.
I have one form, based on a query, that is giving me troubles with record deletion.
Before going to the hidden window setup, my users could simply use the 'record selecters' of the form and right click/cut to delete a specific record. This no longer works (selection seems to work, but the cut/copy/paste dialog is no longer visible).
Since going back to a non-hidden window is not an option, I was wondering if anyone could help me out.
How can I take an SQL statement, under a command button, like this partial one
Code:
DoCmd.RunSQL "DELETE * FROM LocTemp WHERE ItemNumber [b][blue]?????[/blue][/b];"
Something like this:
Code:
DoCmd.RunSQL "DELETE * FROM LocTemp WHERE ItemNumber = [Me]![[b][blue]SELECTED RECORD[/blue][/b]]
Thanks in advance!
- Turb