MS Developer Applications

     Go!
Prospero Blocks


 

Chat Center

Access Conference Room
Topic: Access

Board Folders

Misc. Tech Questions: 2346 msgs in 552 dscns, Latest: Jul-6 Misc. Tech Que...
2346 msgs in 552 dscns
Latest: Jul-6
Access Database Design: 1194 msgs in 247 dscns, Latest: Oct-27 Access Databas...
1194 msgs in 247 dscns
Latest: Oct-27
Access Forms/Reports: 3425 msgs in 749 dscns, Latest: Nov-1 Access Forms/R...
3425 msgs in 749 dscns
Latest: Nov-1
Access Code/Macros: 2335 msgs in 550 dscns, Latest: Sep-24 Access Code/Ma...
2335 msgs in 550 dscns
Latest: Sep-24
Access Roundtable: 851 msgs in 199 dscns, Latest: 5/17/09 Access Roundtable
851 msgs in 199 dscns
Latest: 5/17/09
SQL Server/Queries: 1044 msgs in 248 dscns, Latest: Oct-15 SQL Server/Que...
1044 msgs in 248 dscns
Latest: Oct-15
.NET Programming: 838 msgs in 197 dscns, Latest: 3/18/09 .NET Programming
838 msgs in 197 dscns
Latest: 3/18/09
VB/VBA Programming: 1081 msgs in 270 dscns, Latest: Nov-3 VB/VBA Program...
1081 msgs in 270 dscns
Latest: Nov-3
VFP/Fox:Lang/Design/OOP: 4508 msgs in 740 dscns, Latest: Nov-16 VFP/Fox:Lang/D...
4508 msgs in 740 dscns
Latest: Nov-16
VFP/Fox:Forms/Controls: 2396 msgs in 423 dscns, Latest: Nov-4 VFP/Fox:Forms/...
2396 msgs in 423 dscns
Latest: Nov-4
VFP/Fox:Data/DBC/Views: 1697 msgs in 277 dscns, Latest: Sep-7 VFP/Fox:Data/D...
1697 msgs in 277 dscns
Latest: Sep-7
VFP/Fox:Reports/Misc/2x: 1815 msgs in 397 dscns, Latest: Oct-6 VFP/Fox:Report...
1815 msgs in 397 dscns
Latest: Oct-6
Delphi/Kylix/Pascal: 896 msgs in 86 dscns, Latest: 1/23/07 Delphi/Kylix/P...
896 msgs in 86 dscns
Latest: 1/23/07
Breakpoint Chatter: 1855 msgs in 119 dscns, Latest: 4/12/09 Breakpoint Cha...
1855 msgs in 119 dscns
Latest: 4/12/09
Message Area
Access Forms/Reports

Data of many records of 1 form to popula

 Subscribe SubscribeGet a printer-friendly version of this discussion Print Discussion 

#1 of 9

     Posted Oct-30 8:32 AM   
nansar573
 
From  nansar573  Posts 5  Last Nov-1
To  All      [Msg # 25197.1 ]    

Hi,
I am working on a database in which I need to be able to use a cmd button to populate a new form but I need to be able to add many records from the initial form in order to do so.

For example:
For lack of a better example I will just make one up that will mock my real life database.

I have candles of varying degrees of sizes, aromas, colors, manufacturers, etc. So each candle has its specified number such as CDL-1248.

The main form, frmCandlesInventory is where the data is entered to create and maintain the candle records. If I am creating a requesition to fulfill an order I want to be able to look at the individual records in frmCandlesInventory and click a command button on that form that dumps the necessary information about the candle onto the requisition form. I need to be able to find another candle in the records and add it to to the same requisition. I am really not sure how to go about this. I already have it set up where i can, in the requisition form, pull the information from the candle form to the requisition form, however, this is not the way my boss wishes it to be. Therefore, I must be able to manage it all from the candles form. Any help is greatly appreciated.

 

thank you.

NAnsar

 OptionsReply to this Message Reply

#2 of 9

     Posted Oct-31 10:59 AM   
Mark Liquorman [sysop]
 
From  Mark Liquorman [sysop]  Posts 1285  Last 10:09 AM
To  nansar573      [Msg # 25197.2 Message 25197.2 replying to 25197.1 25197.1 ]    
First a little terminology.  You don't "pull information from a form"; you pull information from tables.  Your frmInventory seems to be a standard form for enterring information about candles, probably including such data as height, width, shape, color, fragrance, etc.

I'm guessing a single "requisition" comprises multiple candle types; that is, it might contain 5 CDL-1248, maybe 10 CDL-1299, etc.  This means you need 2 tables here, a Requisition table (containing requisition#, date, who requisitioned it, etc.),and a RequisitionDetail table (containing a record for each candle type spcecified in the requisition.  This is a standard Order Entry situation.  You might want to look at the Northwinds sample database that comes with Access for an example of how this works.

Mark Liquorman [sysop]
Visit my website for Access Tips & Utilities http://www.liquorman.net/tips.html

 OptionsReply to this Message Reply

#3 of 9

     Posted Oct-31 4:41 PM   
nansar573
 
From  nansar573  Posts 5  Last Nov-1
To  Mark Liquorman [sysop]      [Msg # 25197.3 Message 25197.3 replying to 25197.2 25197.2 ]    

My apologies Mark for my terminology. I do understand databases and relations etc i guess i was simplifying what i am trying to achieve, for whatever reason ive not been able to wrap my head around it. However, it may help clarify my post to anyone else who might be seeking the same sort of help. I really appreciate the response and i will certainly take a look at northwinds. thank you for responding and please continue helping :).

NAnsar

 

 OptionsReply to this Message Reply

#4 of 9

     Posted Oct-31 5:14 PM   
nansar573
 
From  nansar573  Posts 5  Last Nov-1
To  All      [Msg # 25197.4 Message 25197.4 replying to 25197.3 25197.3 ]    

I am looking at the northwinds database and what i am seeing is very similar to what i already have in place. What i am trying to do is on (referencing the northwinds set up) is on the products form I need to be able to select the particular product record that i am looking at to be recorded on an orders form by having a command button on the products form that if i click the button it applies the data to a new order. Then i need to be able to go to another record on the products form and again click the command button to apply that data to the new order form along with the prior product that i applied.

So that if i am looking at the products form i see the product chai that i want to add that to the order# 001, i click the command button and it applies it to that order. Next i move through the product forms record until i come upon the next item i want to add to the order, Northwoods Cranberry Sauce. I then click the command button to add it to the same new order, order# 001. Right now i have it where you would open a form similar to the "orders" form and from a drop down menu select the item to add and in doing so the description, ect, would be added to the order, I could go to the next line and add another product in the same manner to fulfill the order. 

Thank you for any help,

NAnsar

 

 OptionsReply to this Message Reply

#5 of 9

     Posted Oct-31 5:50 PM   
Mark Liquorman [sysop]
 
From  Mark Liquorman [sysop]  Posts 1285  Last 10:09 AM
To  nansar573      [Msg # 25197.5 Message 25197.5 replying to 25197.4 25197.4 ]    
I'm sure the Northwinds db has an example of an Orders form.  This is what you should be working from, not the product form.  You create an order.  You have a subform on the Orders for the products you want to  include in the order.  Use a combobox to select a product.

Mark Liquorman [sysop]
Visit my website for Access Tips & Utilities http://www.liquorman.net/tips.html

 OptionsReply to this Message Reply

#6 of 9

     Posted Oct-31 6:02 PM   
nansar573
 
From  nansar573  Posts 5  Last Nov-1
To  Mark Liquorman [sysop]      [Msg # 25197.6 Message 25197.6 replying to 25197.5 25197.5 ]    
I am not disagreeing with you. I feel the that the order should be handled on the orders form and i have the drop down combo box etc but my boss is being adamant about having the command button on the products form.
 OptionsReply to this Message Reply

#7 of 9

     Posted Oct-31 9:16 PM   
Mark Liquorman [sysop]
 
From  Mark Liquorman [sysop]  Posts 1285  Last 10:09 AM
To  nansar573      [Msg # 25197.7 Message 25197.7 replying to 25197.6 25197.6 ]    
You can ask him how Access (or anyone) is going to know which Order to place the Product on when this Product button is pressed?  Is it a new Order?  An existing Order?

Mark Liquorman [sysop]
Visit my website for Access Tips & Utilities http://www.liquorman.net/tips.html

 OptionsReply to this Message Reply

#8 of 9

     Posted Nov-1 1:23 AM   
nansar573
 
From  nansar573  Posts 5  Last Nov-1
To  Mark Liquorman [sysop]      [Msg # 25197.8 Message 25197.8 replying to 25197.7 25197.7 ]    
The order number will be created prior to going to the products form to select the items that will be added. So it can be assigned the order number when the item is selected.
 OptionsReply to this Message Reply

#9 of 9

     Posted Nov-1 1:31 AM   
Mark Liquorman [sysop]
 
From  Mark Liquorman [sysop]  Posts 1285  Last 10:09 AM
To  nansar573      [Msg # 25197.9 Message 25197.9 replying to 25197.8 25197.8 ]    (Unread)
At this point, I'm not sure what you are asking for.  You obviously have to do it the way your boss wants, regardless of how inefficient and clumsy it is.  Best thing to do is to have this Product selection button run an append query to add the product to the Order.

Mark Liquorman [sysop]
Visit my website for Access Tips & Utilities http://www.liquorman.net/tips.html

 OptionsReply to this Message Reply
 Subscribe SubscribeGet a printer-friendly version of this discussion Print Discussion 
Access Forms/Reports

Data of many records of 1 form to popula

  
 
     

Welcome, Guest

  • Post a message
  • New messages to you
  • Log in

Start Search
Advanced Search

Prospero Blocks
 
 
 
Special Offers
 
 
 

Finding People

 
 
 

Cool Clicks!

 
 
 
© 2009 CompuServe Interactive Services, Inc. All rights reserved.

Legal Notices | Privacy Policy