If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Form with a selectable Query that then pulls up another form?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-12, 12:25
Polkster58 Polkster58 is offline
Registered User
 
Join Date: Jan 2012
Posts: 18
Question Form with a selectable Query that then pulls up another form?

Okay, I have searched everywhere but cannot find the answer I am looking for probably because I don't know the "proper" terminology to ask the correct question.

Here is what I am wanting. I have a table (Task Assignments) that stores work orders that multiple people will have entered in requesting tasks to be accomplished at our facilities. I have a form designed and working (WorkOrderRequest) that accomplishes this part. I now want a form that has something like a combo box which lists only the work orders that have not been assigned to someone sorted by 4 different fields in this table. I then want to be able to select one of the work orders listed and have a different form pop up that will allow me to put in the name of the person assigned to this task as well as some additional fields. Once I click on the Submit button of the second form, I want to go back to the list and it show me the remaining items that are still open.

I have a query written (OpenWorkOrdersQuery) that does the second part but what I really want is this information displayed on a form in columns not just a report listing.

I have a form already done (WorkOrderAuthorize) that does the last part, assigning a person to the work order and filling out the additional prompts with a submit button.

What I cannot figure out is how to create a form that brings up a list that I can choose from which will then take me to this form. Can this be done? If not, what is the best way for me to see a list and then pick an item which then brings up a form so I can complete some actions for this record in a table?
Reply With Quote
  #2 (permalink)  
Old 01-05-12, 16:02
dave0810471 dave0810471 is offline
Registered User
 
Join Date: Jan 2012
Posts: 87
Have attached a database with your three forms mocked up. If you start with the 'WorkAssignments' form you will be able to work your way through the forms hopefully in the manner you require.
Noteworthy:

A command button on the first form that opens a form with a listbox based on your query for jobs that are unassigned.
An event that fires on the double click of any item in the list bringing up your final form that uses the selection you make from the listbox as a parameter in a query based on your original table.
The code behind the command buttons and the listbox should explain how it works.

Hope this helps
Dave
Attached Files
File Type: zip WorkAssignments.zip (62.3 KB, 9 views)
Reply With Quote
  #3 (permalink)  
Old 01-05-12, 20:16
Polkster58 Polkster58 is offline
Registered User
 
Join Date: Jan 2012
Posts: 18
I downloaded your example and that is Perfect. That is exactly what I needed to get started. I will go through it with figure out how you did it and then apply the example to my database.

Thanks a million as this will save me a ton of time and frustration.
Reply With Quote
  #4 (permalink)  
Old 01-06-12, 13:16
dave0810471 dave0810471 is offline
Registered User
 
Join Date: Jan 2012
Posts: 87
Your welcome, glad to help.
Reply With Quote
  #5 (permalink)  
Old 01-10-12, 16:53
dave0810471 dave0810471 is offline
Registered User
 
Join Date: Jan 2012
Posts: 87
Database attached RE: PM
Attached Files
File Type: zip DB1.zip (452.1 KB, 2 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On