Results 1 to 8 of 8
  1. #1
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228

    form and pop form saving to different records

    Hi All,

    I have created a database which 4 forms (1 main form, and 3 pop up).


    In the main form, after the CutSize field has been populated through a combo box, one of the three pop-ups pop up depending on the value of the Cutsize field. The user then enters information in the pop up, that should be saved on the same record with the information from the main form.

    problem: the information is saving to consecutive records, not hte same one.
    the pop up saves to one record, then the main form to the record after.

    is there a way to have both forms save to the same record. perhaps my database design is faulty, but i have deadlines that i must meet coming up rather quickly.

    thanks
    -j

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Would have to know more about your data structure and forms. Provide project for analysis. Having two separate forms acting on same record is tricky. That's the same as two users opening the same db and trying to edit the same record.

    I don't understand why you need three popup forms.
    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
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    after compacting the db, it is at 538KB
    i cant strip it anymore or else you wont be able to see what I'm talking about.
    is there another way to make the file size smaller?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Zip the file with Windows compression, 2mb size allowed.
    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
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    Thanks June7,
    i have attached the database.
    Attached Files Attached Files

  6. #6
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    Perhaps a better approach to something like this might be to use tabs instead of pop-up forms?
    >.<
    this is my second database i build.

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    I can say I would not use 4 forms to try and edit the same data. Definitely would not have 3 identical forms. Two of the popups are bound to table, one is bound to query - why? Why 3 popups - what is the meaning of 040, 063, 125?

    One query links the two tables on work order but work order is not primary key in either table. Neither is indexed and will allow duplicate work orders. Are the two tables a one-to-one relationship? A work order record must always be in both tables? If so, could be one table.
    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.

  8. #8
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    the one bound to the query was an attempt to have it save to the same record as the main form (didn't work). the meaning of 040, 063, 125 are the different diode diameters we have. The 3 pop ups were an attempt to organize the lot numbers for preforms, pins and leads we use to build the diodes.
    For example, 040 describes only the diameter of the diode, but 040 is a family of diodes, and it branches off to different types of diodes with 040 diameter; as a by product, different pins/preforms/leads are used. similarly with 063 and 125.
    this is why i wanted to separate the information using pop up windows, so that the operators could choose the information easier.

    i have abandoned this approach, as it seemed too difficult (and wrong). I have made tabs on the main form, which similar structure as the pop-ups, and now everything is saving correctly.

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

Similar Threads

  1. saving a form
    By Ray67 in forum Forms
    Replies: 11
    Last Post: 10-23-2011, 06:45 PM
  2. Replies: 1
    Last Post: 04-19-2011, 01:55 PM
  3. Prevent Saving of Form
    By bburton in forum Access
    Replies: 4
    Last Post: 02-25-2011, 09:26 PM
  4. stopping a form from saving records
    By LAazsx in forum Forms
    Replies: 4
    Last Post: 12-09-2010, 05:48 PM
  5. Closing and saving a form
    By Lxmanager in forum Forms
    Replies: 14
    Last Post: 11-21-2010, 02:04 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