Results 1 to 3 of 3
  1. #1
    dlab85 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    47

    Combo Box selection is not saving Record?!

    Hey Everyone,
    I have a chemical log in form that does what I want visually, but have hit a Mental Roadblock on the performance of the function I want. Attached is the form, and my relations between tables, with tblChemicalInfo and tblChemicalID the main focus of my question.
    Click image for larger version. 

Name:	LogInForm.JPG 
Views:	7 
Size:	163.4 KB 
ID:	11504Click image for larger version. 

Name:	Relationship.JPG 
Views:	5 
Size:	170.0 KB 
ID:	11505
    The user selects a catalog number from the combo box labeled "Catalog Number". That combo box has a row source that queries all catalog numbers in the database (per setup with Combo Box Wizard). After user selects catalog number, I have an AfterUpdate macro to requery. The query is for the information direction below the combo box, my Chemical Info (Which is a form). This form's record source is a query with all the fields from tblChemicalInfo, and critieria on Catalog Number based on selection in the combo box "Catalog Number". This pulls up the appropriate information for the selected record, which helps pre-fill the LogIn form for the user. BUT, when I continue to enter the information in the fields to the right of the Chemical Info (which are forms based on tblChemicalID, tlbLocation), it creates my ChemicalID (autonumberd PK for tblChemicalID), but doesn't save that record under the selected Chemical that the user selected. I tried having the query display both tblChemicalInfo and tblChemicalID to see if that would tell access to add the FK ChemicalID to the Chemical with that Catalog Number. I feel like this should have been an easy shoe-in, and have once again tripped myself. Any help would be appreciated. Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Is combobox labeled "Catalog Number" an unbound control?

    Don't understand data structure.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    dlab85 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    47
    Nevermind June7. I figured it out. I just needed some form rearrangement. It seems that when I happen to get stuck, usually just explaining my situation helps my brain comprehend the multiple steps I have taken, and results in a solution (most of the time . Marking thread as solved!

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

Similar Threads

  1. Replies: 4
    Last Post: 11-21-2012, 10:11 PM
  2. Replies: 21
    Last Post: 10-05-2012, 11:36 AM
  3. saving Combo Box selection to a table
    By rmiell in forum Access
    Replies: 1
    Last Post: 10-04-2011, 11:38 AM
  4. Replies: 5
    Last Post: 03-11-2011, 11:28 AM
  5. Pop-up Combo Box Record Selection
    By AKQTS in forum Forms
    Replies: 1
    Last Post: 08-11-2010, 01:01 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