Results 1 to 9 of 9
  1. #1
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35

    Changing the source data of a combobox while maintaining current functionality

    Hi everyone,



    Please see formTicketMod in the attached database. To the very right of that form I have text boxes and comboboxes in place so the user can have that data added to table tableWarehouseData.

    I would like to make a slight change though I'm not sure how to go about it. How do I make it so that clicking commandAdd still does the same thing it does currently, but instead of the user selecting a UPC in comboAddUPC, they select a style, color and size just like combobox cboStyleNo?

    Thank you very much!

    Tony
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Not understanding what you need. Why select style, color, size? Those fields are not in tableWarehouseData.
    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
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35
    Oh, I'm sorry. I should have been more clear. You are correct, but the Articles/UPCs are in both tableWarehouse and tableKWIData, so the style, color and size can be selected from tableKWIData some way, right?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    You mean like in the combobox on the left side of the form?

    Still don't know why you need to select those attributes under 'Adding Tickets'. Nor why clicking commandAdd would have anything to do with selecting those attributes.
    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
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35
    Yes, exactly like the combobox on the left side. And it's really just for the user's convenience. It'd be much easier for the user to look up the style, color and size than the article/UPC.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I am totally lost. If Add Ticket means add a brand new ticket to tableWarehouseData, why would you need to select any info from tableKWIData? Are you actually wanting to select ticket existing in tableKWIData and save it into tableWarehouseData?
    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
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35
    I apologize again. Let me try to explain it better after two failed attempts, haha.

    The ticket and location will be entered by the user. Those could be practically anything - numbers, characters, whatever.

    The combobox comboAddUPC in place DOES select the articles from tableKWIData as its source, but the command button commandAdd does indeed add that data to tableWarehouseData though.

    So the command button already does what I would like it to do. It adds a new record to tableWarehouseData - the ticket, the location, the article and the quantity. That DOES NOT need to change.

    I would just like combobox comboAddUPC on the right to be like combobox cboStyleNo on the left in that it is still tied to the article but the combobox itself displays the style, color and size for the user to select.

    I hope I made this a bit clearer.

    Thank you for your patience June.

    Tony

  8. #8
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35
    Was anyone able to take a look at this?

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    So UPC is synonymous with Article?

    Sounds like you just need to replicate the properties of the Style/Color/Size combobox in the UPC combobox.

    Why is the Quantity textbox bound? If you enter a value then the record will be altered.
    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.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-20-2012, 01:22 AM
  2. Changing the data source for a table field with a form
    By WildcatMatt92 in forum Database Design
    Replies: 3
    Last Post: 11-30-2011, 03:16 PM
  3. Changing Query Source
    By EricF in forum Queries
    Replies: 8
    Last Post: 08-26-2011, 12:23 PM
  4. Changing Report Source
    By EricF in forum Reports
    Replies: 1
    Last Post: 07-19-2011, 12:25 PM
  5. Changing row source
    By joacro in forum Access
    Replies: 3
    Last Post: 03-06-2011, 07:35 PM

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