+ Reply to Thread
Results 1 to 18 of 18

Form based on table is not populating

Hybrid View

  1. #1
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,017

    Re: Form based on table is not populating

    Ok. More thinking outside the box. Add an after update event to each of the four text boxes. In the after update event put the same code used in the on load event to lock the text boxes.

    So, when the form loads, the text boxes are locked. Click on the command button and you can edit any text box. Click on a tab or enter and the after update event fires and re-locks all the text boxes.

    Its a workaround that just may work.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  2. #2
    Registered User
    Join Date
    11-07-2009
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Form based on table is not populating

    Quote Originally Posted by alansidman View Post
    Ok. More thinking outside the box. Add an after update event to each of the four text boxes. In the after update event put the same code used in the on load event to lock the text boxes.

    So, when the form loads, the text boxes are locked. Click on the command button and you can edit any text box. Click on a tab or enter and the after update event fires and re-locks all the text boxes.

    Its a workaround that just may work.

    Alan

    Thanks Alan,
    It is a kind of workaround. It does work however the only thing wrong with it is that for me to actually edit an entire movie record (read line) I need to click the edit button each time I change the focus to the new text box.

    What about a way to use the command button to open a new form with only that lines entries in it .... the form would look just like the search form already created but pre-populate with the relevant entry ?

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,017

    Re: Form based on table is not populating

    Create a form that has a record source the query that you developed for the search. Its worth a try. You could have it open as datasheet view. Make your edits and close it.

    This also reminds me that if you run a query, you can make edits directly in the datasheet view of the query and it will update your table. Pick your poison.

    Alan

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1