Results 1 to 7 of 7
  1. #1
    d9pierce1 is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Oklahoma
    Posts
    776

    list items edit form properties to open to specific record

    Hello All.
    I am trying to figure out this "list items edit form" Property. I have a form (City) and a form (State), A combo box in Form (City) that is called State, Created with wizard [StateID];[State] and in the property I have set the "list items edit form" to form (State). Works however it goes to first record in State and I want it to go to the current record I want to edit in form City. I have tried pacing the "Forms!FormName!FieldName" to various places within the form (State) to try to bring the selected edit over with no success.

    Basic question is how do I use this property to edit the selected record in the form it opens? I dont want to sort through all the records to find the one I want to edit.


    Thank you,
    Dave

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    I suggest you post a copy of your database in zip format.

  3. #3
    d9pierce1 is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Oklahoma
    Posts
    776
    Here it is, thanks
    Attached Files Attached Files

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    I'm not sure I am following what you are trying to do with
    a) the database forms both state and city,
    b) the list items edit

    If you are creating a table of States, and a table of Cities with a State(s), what exactly is your process?
    Access will save a record when you move off that record, so an explicit "save" is not required.
    When I tested your form I get a message that "Undo" is not available?
    I have used the list items edit when adding a new record to a list. See this thread post 49--51. There are references to details in those posts.
    Last edited by orange; 11-24-2018 at 11:22 AM. Reason: added link

  5. #5
    d9pierce1 is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Oklahoma
    Posts
    776
    Tbl_State Holds only state info, Tbl_City holds city and zip associated with state.
    The Property I am referring to is when on Frm_City and I use the "list items edit form" property, it gives a little icon to edit when I drop down on the combo box. You click the edit Icon and it takes you to the Frm_State to edit the record. Well, It takes you to the first record on the Frm_State instead of the record you want to edit that is all ready in the combo box. This is a sample db just to get the controls correct before adding serious data and is part of a larger db I am working on. So, I am looking to see how if I hit the popup edit when clicking on the CboState in Frm_City, it will open the Frm_State to the specific record I want to edit, not just all records starting with the first. If I have 30,0000 records this command is useless for the purpose. Is there a way to get this info to the Frm_State?

    Lets say!
    Frm_City:
    Selected Txt City = West Creek
    Selected CboState = NJ
    Selected TxtZip = 08092

    I want to edit CboState so I click on the down arrow, a list presents with an icon under it to edit. If I hit edit icon, it takes me to Frm_State but to the first records of all records. Even though I have all ready specified a state to edit in the CboState. I dont want to edit all records, just that one! I hope this makes sense.
    Thanks

  6. #6
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,412
    I don't think it's going to work the way you want, but here's a workaround.
    I modified the query to include the StateID from tbl_City (the FK), and made that field the controlsource for cboState in frm_CIty.
    Created a rowsource for cboState on frm_City.
    Created TempVar!tvStateID when cboState is double clicked in frm_City. The double click also opens frm_State with a filter to call up the proper state.

  7. #7
    d9pierce1 is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Oklahoma
    Posts
    776
    Thank you, I thought that property was to easy to work good! Thank you

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

Similar Threads

  1. Replies: 5
    Last Post: 08-06-2018, 05:31 PM
  2. Open Form to a specific record to edit
    By adiaz1129 in forum Forms
    Replies: 4
    Last Post: 02-16-2018, 07:12 PM
  3. combo-box list items edit form
    By raffi in forum Forms
    Replies: 3
    Last Post: 10-26-2014, 03:22 PM
  4. Write "Edit List Items.." data back to original form.
    By ngahm in forum Database Design
    Replies: 33
    Last Post: 02-27-2012, 06:54 PM
  5. Edit List Items
    By Broderhol in forum Forms
    Replies: 3
    Last Post: 02-23-2011, 05:51 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