Results 1 to 7 of 7
  1. #1
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38

    auto fill text box from dependent combo box

    can anyone please help me on this issue i have dependent combo boxes which is working fine what i want is to select the value from the list and the text box should be filled in my case it is attachement field i want to fill up the value based on combo boxes selection.I have attached the database also.



    Thanks,
    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
    52,930
    Since the form is bound, what you need to do is move to the desired record or filter the form recordset. Here is one method http://datapigtechnologies.com/flash...tomfilter.html
    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
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38
    Hi June

    I saw your link but its not dependent combo box to filter the form recordset,what i saw in the link is just one combo box to filter the records. I want to select the value from second combo box to filter the recordset please if possible can you modify the attached DB.

    Thanks for your support

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Doesn't matter if your comboboxes are dependent. The technique is the same. Have the query parameter refer to your second combobox.

    You might find disussion in this thread of interest https://www.accessforums.net/queries...ing-25758.html
    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
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38
    June Please help iam not able to figure it out i tried to change the expression in operating system but it doesnt show up anything the problem is the text feild which is attachment in my DB.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Change the form's RecordSource to:

    SELECT [Operating systems].Attachments, [Operating systems].Attachments.FileName, [Operating systems].[Subsystem ID], [Operating systems].[Operating System] FROM [Operating systems] WHERE ((([Operating systems].[Operating System])=[Forms]![Form1]![Combo2]));

    Then code in the AfterUpdate event of Combo2:
    Me.Requery
    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
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38
    thanks june for your kind support its working now

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

Similar Threads

  1. Auto-Fill text fields in the form
    By sk88 in forum Access
    Replies: 2
    Last Post: 01-10-2012, 08:22 PM
  2. Replies: 3
    Last Post: 10-13-2011, 04:42 PM
  3. Replies: 15
    Last Post: 04-01-2011, 11:41 AM
  4. Auto fill-in text box on forms
    By windwardmi in forum Forms
    Replies: 7
    Last Post: 09-13-2010, 02:47 PM
  5. auto fill certain text fields?
    By darklite in forum Forms
    Replies: 4
    Last Post: 07-12-2010, 02:20 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