Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    5

    Help... records dissapear from continuous forms

    Hi... I'm using Access2007. I have an OrderDetails form which is a continuous form and is a subform of Orders (with the OrderID as the linked child/parent field).



    I can enter the first OrderDetail entry and the form automagically provides a second row to enter a new record.

    When I try to enter any of the fields in the second row, the 1st row dissapears and the OrderID is not automatically set (as it was on the first... based on the linked fields).

    Why? What's going on? Why is the first row dissapearing???

    Hint: If I comment out "Me.Recalc" from the form_AfterInsert event, EVERYTHING WORK FINE... the rows do not dissapear and the OrderID is pre-populated.

    I have the me.recalc because one of the controls is a combobox with a _notInList event which apparently required the recalc to keep everything in sync.

    Help??

    Thanks

    -Ed

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You should not need the Recalc. Is it a ComboBox on the SubForm that was giving you a problem? Was it from a "LookUp Field"? http://www.mvps.org/access/lookupfields.htm

  3. #3
    Join Date
    Aug 2008
    Posts
    5

    Red face

    Actually... I just realized that the reason I put the recalc is because I had a "total" textbox (unbound) at the bottom which uses the DLookup function.

    I've been trying different approaches... I decided to comment out the refresh and put the total in the parent form (Orders) but that total does not get updated. Just for debug purposes, I created a Refresh button (macro) and that DOES update the total but erases the original entries in the OrderDetails subform.

    CATCH-22

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is your Totaling control in the Footer of the SubForm? Why does it use a DLookUP() function? I would think everything you need is on the SubForm.

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

Similar Threads

  1. Saving records in multiple sub forms
    By niak32 in forum Forms
    Replies: 0
    Last Post: 10-13-2008, 04:24 AM
  2. Making fields dissapear
    By rev_ollie in forum Access
    Replies: 0
    Last Post: 09-11-2008, 03:56 PM
  3. Continuous Range of Records
    By tigers in forum Access
    Replies: 0
    Last Post: 10-10-2007, 08:36 AM
  4. Replies: 1
    Last Post: 03-22-2007, 10:19 AM
  5. Replies: 9
    Last Post: 01-31-2006, 08:35 AM

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