Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    tinyappz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    14

    Problem about Multiple Data retrieve to a form from a table.


    Problem about Multiple Data retrieve to a form from a table. look at the image attachedClick image for larger version. 

Name:	database form.jpg 
Views:	24 
Size:	140.3 KB 
ID:	14939
    There is a table called products from that i wanna get data when i select the drop down arrow as in the attached image, when selecting a PRO_Code in drop down there are products as RSK60, RSK41 etc you can see. when selecting the products other Fields(Pro_Description) will fill automatically .
    Question is when we select the second product and change the value to as example RSK41, first product also change to RSK41 instead of RSK60. What i have done is in combo box properties , Data then Control source as PRO_Code from the table. There is an image also for each product as you can see.Here i have attched the databse that used to retrieve data to form.Click image for larger version. 

Name:	product master.jpg 
Views:	24 
Size:	23.1 KB 
ID:	14940
    how to avoid this waiting for expert opinions .

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The ControlSource is wrong. What table is the form bound to (Product Details)? What field in that table should the PRO_CODE be saved in? Bind combobox to that field.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    tinyappz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    14
    Thank you for the reply.
    Table from bound to PRODUCT MASTER
    Yes that is saved in PRO-Code , also we have bind that see the image.
    This is done by Access 2003

    Click image for larger version. 

Name:	procode.jpg 
Views:	25 
Size:	273.8 KB 
ID:	14944

    Click image for larger version. 

Name:	tranaction quary.png 
Views:	24 
Size:	220.2 KB 
ID:	14943

    added the DB file here

    Quote Originally Posted by June7 View Post
    The ControlSource is wrong. What table is the form bound to (Product Details)? What field in that table should the PRO_CODE be saved in? Bind combobox to that field.
    Last edited by tinyappz; 01-04-2014 at 03:07 AM. Reason: adding more contents

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Ooops, the form design is wrong. You have 3 sets of controls all bound to the same fields. Of course they will all show the same info, they are all editing the same record. Remove the 2 duplicate 'rows' of controls.

    Show your table structure, not the queries.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    tinyappz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    14
    Quote Originally Posted by June7 View Post
    Ooops, the form design is wrong. You have 3 sets of controls all bound to the same fields. Of course they will all show the same info, they are all editing the same record. Remove the 2 duplicate 'rows' of controls.

    Show your table structure, not the queries.
    Remove the 2 duplicate 'rows' of controls.

    Show your table structure, not the queries.

    Since i am Novice Above 2 things not clear for me , really appreciate explanation further .

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You have 3 rows of controls on the form: PRO_CODE PRO_DESCRIPTION GARMENT etc

    Delete 2 of them.

    The posted image shows a list of queries in your db. An image of table structures would be more useful. I just noticed the link for database but I can't open rar files. Windows Compression zip only.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    tinyappz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    14
    I think there is misunderstanding ,
    Here is what this MS access for ,
    Main thing is to print a invoice as attached here ..
    6 products(RSK 61, RSK 45 etc) needs to print in 1A pager. there are separate forms for adding products , adding customers, Order transaction form for generating invoice . in order transaction form we need to add up to 6 product at the moment we have place 3 as you can see in above posts.
    So we can't remove duplicate rows , as i think .
    Really appreciate your response .

  8. #8
    tinyappz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    14
    Here is the table structures
    Click image for larger version. 

Name:	table structures.jpg 
Views:	22 
Size:	133.7 KB 
ID:	14947

    and access zip file here.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You have to remove the duplicate rows because they won't do what you want. As I said, all three rows show the SAME RECORD. PRO_CODE and CUS_CODE textboxes should be bound to the fields from TRANSACTION_TAB.

    If you want to use this form for data entry, the query join types cannot be INNER. Click on the lines linking tables and change the join to: "Include all records from Transaction_Tab and only those from ..."

    Change the form to Continuous View.

    Forms are intended for data entry/edit and screen display. Reports are best for printing.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    tinyappz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    14
    after remove 2 rows how to add products up 6 to the form for making an invoice ?

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Click the intrinsic 'new record' button at bottom of form or create a custom button to move to new record.

    Or change the form to Continuous view to see multiple records at once, like a datasheet.

    Add as many records as you want.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #12
    tinyappz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    14
    how can i add up to 6 products to under one invoice ? invoice should generate up to 6 products per 1 invoice no..i have change setting as mentioned above.

  13. #13
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Probably should have two tables.

    tblInvoices
    InvoiceNum (primary key)
    InvoiceDate
    CustomerID

    tblInvoiceDetails
    InvoiceNum (foreign key)
    ProductID
    Quantity
    Size
    Price

    Use form/subform arrangement for data entry. http://office.microsoft.com/en-us/ac...010098674.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  14. #14
    tinyappz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    14
    I have done as you mentioned above. and made tblInvoiceDetails as sub and as main tblInvoices, but there is small problem of adding product and moving to next record, when moving to next record sub forms not clear the previous data we entered. what we can do for that.

  15. #15
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Did you actually bind the forms to the tables? Did you set the subform container control Master/Child links properties?

    How are you moving to next record?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 07-26-2013, 12:10 PM
  2. Replies: 1
    Last Post: 11-08-2012, 02:37 PM
  3. Submit and retrieve data in a form
    By Bertrand82 in forum Import/Export Data
    Replies: 1
    Last Post: 10-05-2012, 11:44 AM
  4. Replies: 1
    Last Post: 03-09-2012, 07:43 PM
  5. Replies: 1
    Last Post: 05-17-2011, 05:19 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums