Results 1 to 8 of 8
  1. #1
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37

    Question Form combobox won't bring up values

    Hello,

    I currently have a form (EditRecord) with a combobox that when a record is selected, it will fill in values in textboxes also on the same form.
    It works great and does exactly what I need it to do when I open the form directly from the navigation pane.

    However because the final product will have the navigation pane locked I have created a form (Goto) in which users can choose between the different forms I have created.
    When going from the (Goto) form to the (EditRecord) form the combobox still has the same values to chosse from but it does not fill in the textboxes on the form like it would if I opened it from the navigation pane.
    I have run into and error like this before but I was using the predesigned Navigation Form already in Access. Trying to avoid the same issue I created the GoTo form from scratch and the buttons that take you from one form to another are only simple macros

    Click image for larger version. 

Name:	Capture.JPG 
Views:	16 
Size:	16.4 KB 
ID:	12381


    Its a little blurry but whats above is just the OpenForm, with the EditRecord form choosen to open upon clicking the button.

    Thank you for any help you can provide.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849

  3. #3
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37
    Sorry, the Goto form is simply a form with several buttons on it that the user needs to make it easier to navigate. for example:
    the user would eneter the database, the would either be staff or a customer.
    If staff they would choose staff --> enter the correct password on the password form ---> goto form (choose edit record) ----> Edit record form

  4. #4
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    Try changing the Data Mode to Edit.

    As the Macros sets now you can only add to the underlying dataset.


    Dale

  5. #5
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37
    Okay i changed the data mode on the button to edit, it was on add but it still will not bring up entries intot the textboxes

  6. #6
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    Try;
    DoCmd.OpenForm "frmEditRecord", acNormal, , , acFormEdit, acWindowNormal

    Change the embedded macro to event procedure for the On Click event and paste this there.

    Dale

  7. #7
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37
    That worked perfectly, thank you so much, made my friday

  8. #8
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    You are most welcome.
    Glad we could help.


    Dale

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

Similar Threads

  1. Generate form based on combobox values
    By OatmealJones in forum Forms
    Replies: 3
    Last Post: 02-13-2013, 04:08 PM
  2. Replies: 1
    Last Post: 07-26-2012, 10:20 AM
  3. Bring back focus to a form
    By AbbHeDa in forum Programming
    Replies: 6
    Last Post: 04-28-2012, 01:50 AM
  4. Replies: 1
    Last Post: 03-24-2010, 08:42 AM
  5. Replies: 7
    Last Post: 05-16-2009, 08:08 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