Open a query and pausing for changes

G

G. Vaught

This may not be the best method so any other ideas are welcome.

I have created a series of queries that alone executed in order work as
written.

What I am trying to do is execute the set of queries via a command button.
All queries work except where I need to temporily stop the delete query from
executing until the user has finshed updating two records that open in two
different temp tables. At the present my two tables open, but so does the
query to delete the records from the master table, which prevents the user
from entering the changes needed to the temp tables.

To make a long story short. The users of the database need a way to swap
personnel against a computer/software inventory database without having to
manual update or delete a personnel record first. For example I am in room
616 and will be moving to 659. There is specific inventory tags assigned to
me and specific tags assigned to 659. The computer/software is moving with
me to 659. In order to reassign me to 659 the data in 659 needs to deleted
and my info entered as duplication of room numbers is prevented.

What I am doing manually is getting the record info from the first room
number 616 and appending to a temp table. Then getting the second room
number and appending to another temp table. I then want to open each temp
table to allow the user to change the room number 616 to 659 and vice versa
659 to 616. This is where I am having the 'brain fart' of getting the code
to halt until the user has entered the appropriate values and then delete
the original records out of the table and append the new data from the
changed temp tables.

Any help will be appreciated. I have ventured through Google to no avail and
two Access books I have.
 
S

strive4peace

Rather than manually making changes to the queries, why not
use a form to swap rooms?

You could have, for instance, Room 0, which is not really a
room, but a temporary place so that there will not be
duplicates.

on the form, make 2 textboxes:
Room_1
Room_2

and then a command button that would run the update queries:

UPDATE Room_2 to 0
UPDATE Room_1 to Room_2
UPDATE 0 to Room_1


Have an awesome day

Warm Regards,
Crystal

MVP Microsoft Access

remote programming and training
strive4peace2006 at yahoo.com
 
G

G. Vaught

That just might work. I already have a form I might be able to use for that
purpose.
Thanks for the alternate suggestion.
 
S

strive4peace

you're welcome ;) happy to help

Have an awesome day

Warm Regards,
Crystal

MVP Microsoft Access

remote programming and training
strive4peace2006 at yahoo.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top