Results 1 to 11 of 11
  1. #1
    steve9495 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    5

    Changing records on Main and Subform

    Hi all,

    I'm a begginner in access so any explinations in as much detail as possible would greatly help!

    I currently have an Pump table and an Pump serial number table.
    In Pump Table I have the pump part types, in Pump serial number table I have the corresponding part numbers. I need this information in two tables as there is alot to manage.
    For each record in Pump table there should be a matching record in Pump serial number table. Example for every new ESP there must me serial numbers attached with it - self explanatory.

    Im trying to cycle through the records on the main form, and have the sub-form do the same. I currently have the main form able to add/edit records to the Pump table but have been struggling to find a solution to have the subform do the same with the Pump Serial number table.

    I dont know if I should be using a query and if so what type. Or is there an easy way to just link the subform.



    I also dont think I have the proper relationship built between the two tables.

    Any help is greatly appreciated!

    Thanks

  2. #2
    aselm01 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    So Cal
    Posts
    29
    Can you supply a copy of the db so I can mess with it? I have an idea that might work, but I need to test it before I show you how to do it. I am a beginner too, but have been using access a lot lately and have learned a few things.

    The copy does not have to be the whole db, but just enough to get it working.

  3. #3
    steve9495 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    5
    Thank you for your time.
    Attached Files Attached Files

  4. #4
    aselm01 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    So Cal
    Posts
    29

    Unhappy

    Quote Originally Posted by steve9495 View Post
    Thank you for your time.
    I tried to open the db but when it is extracted and I open it in access 2007 it says the db is in an unrecognised format. Don't know what I can do with that.

  5. #5
    steve9495 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    5
    I dont know what to do. Everything appears to be saved as a standard Access database.

    Here is a different one.
    Attached Files Attached Files

  6. #6
    aselm01 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    So Cal
    Posts
    29
    Quote Originally Posted by steve9495 View Post
    I dont know what to do. Everything appears to be saved as a standard Access database.

    Here is a different one.
    Still not working. You are using Access 2010 right? I am using 2007 at work and maybe it can't read the file. Is there an option under "save as" to save the db in an older format? If not I will have to wait until I get home to work on it. I have Access 2010 at home.

  7. #7
    steve9495 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    5
    Yeah its on 2010. I did a quick google- looks like you cant view a 2010 db with 2007 due to a number of newer features. There is a procedure you can go through to remove all those features thus making is viewable in Access 2007, however that is a lot of work.
    If you wouldnt mind checking it out at home- that would be greatly appreciated.

    Cheers

  8. #8
    aselm01 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    So Cal
    Posts
    29
    Quote Originally Posted by steve9495 View Post
    Yeah its on 2010. I did a quick google- looks like you cant view a 2010 db with 2007 due to a number of newer features. There is a procedure you can go through to remove all those features thus making is viewable in Access 2007, however that is a lot of work.
    If you wouldnt mind checking it out at home- that would be greatly appreciated.

    Cheers
    Okay I thought so. I will check it out later then.

  9. #9
    aselm01 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    So Cal
    Posts
    29

    Changing records on Main and Subform

    Okay so what I did was create a new db that just has your tables in it, one query, and the ESP form (with a sub-form for serial information). I used the query (returns all records) as the source for the ESP form and used the serial table as the source for the serial sub-form.

    I renamed the tables and forms to make them easier. I removed the duplicate fields from the ESP table and added a "PumpID" field in ESP. I then added the same field (PumpID) to the ESP Serial table. I made the "PumpID" field indexed with no duplicates in both tables and then created a relationship between the two "PumpID" fields with all three check boxes checked. This will ensure that when you add records to the form that the indexed unifying field (PumpID) is the same in both tables and is unique for each record. You will have to type in a Pump ID for each new record, but then as you type in your data it will update in the serial number sub-form and in both tables.

    I tested it and as I added each new record the data was automatically saved to the tables. You can look at what I did in design view for each table and form to see it visually. I do not know anything about programing so I did not create any macros or VBA code.

    I hope this helps and does what you wanted.

    ESP_Test1.zip

  10. #10
    steve9495 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    5
    That is exactly what I was looking for, thank you very much!!

  11. #11
    aselm01 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    So Cal
    Posts
    29
    Quote Originally Posted by steve9495 View Post
    That is exactly what I was looking for, thank you very much!!
    Glad I could help.

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

Similar Threads

  1. Replies: 4
    Last Post: 07-11-2012, 10:31 AM
  2. Replies: 1
    Last Post: 02-29-2012, 09:38 AM
  3. Replies: 16
    Last Post: 02-13-2012, 03:32 PM
  4. Replies: 0
    Last Post: 07-26-2010, 04:36 PM
  5. Replies: 7
    Last Post: 05-24-2009, 10:24 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