Results 1 to 7 of 7
  1. #1
    gcbeldar is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    May 2017
    Posts
    14

    Query fields value of the Form are not saved in the table

    Please find the attachment of database. I have designed a form, used DLookup for values in the field of the Form. They are displaying as per my requirement. But "Only fields get Values from DLookup" are not stored in BillsTable.

    Please Help. Thanks in Advance
    Attached Files Attached Files

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    Attachment 28558
    See frmMaster in the attached DB. This is the form layout that you should use. Mainform/subform.
    You don't need any lookups.

  3. #3
    gcbeldar is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    May 2017
    Posts
    14

    Your Form with Subform is not my requirement

    Quote Originally Posted by davegri View Post
    Attachment 28558
    See frmMaster in the attached DB. This is the form layout that you should use. Mainform/subform.
    You don't need any lookups.
    Thanks Sir,
    Every Month, Bills are generated, just by entering "Present Reading" and "LoadConnected", "MinCharge", "RatePerUnit" are acquired by Master Table for TName selected in Bills Form. Other Fields are calculated as per requirement.

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    What davegri said: Your table design needs some changes. In a normalized structure, data is never repeated. So all your dlookup's must be removed. If you need to know - for instance, what a bill's connected load is you will use the TName to link to the master table and get the information from there. Do not store the same data in two tables.

  5. #5
    gcbeldar is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    May 2017
    Posts
    14
    Quote Originally Posted by aytee111 View Post
    What davegri said: Your table design needs some changes. In a normalized structure, data is never repeated. So all your dlookup's must be removed. If you need to know - for instance, what a bill's connected load is you will use the TName to link to the master table and get the information from there. Do not store the same data in two tables.
    "LoadConnected", "MinCharge", "RatePerUnit" and "Tax" are changed in 9-15 months, and that will be changed in the Master Table as required.

    Where as BillsTable is used to store information of all the values used at the time of Bill raised.

    Anyhow, I have changed the names of Fields in two tables i.e., Master and BillsTable.

    Now, every thing is working fine, Just want to know why the values derived by "DLookup" in the form are not saving in the BillsTable, but TName selected from the Master is saving (Working Fine) also values entered & Calculated in the Forms are saving in the BillsTable.
    Unable find the solution to save the values derived by DLookup in the forms are not saved in Bills Table.

  6. #6
    gcbeldar is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    May 2017
    Posts
    14
    Sir,
    Also requested any other way like instead of DLookup, can Query can be used ?

  7. #7
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Fields need to be bound to a table. You do this by putting the table field name in the Control Source property - yours have DLookups instead so are not connected to the table in any way.
    Attached Files Attached Files

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

Similar Threads

  1. Replies: 9
    Last Post: 12-25-2014, 12:38 AM
  2. Replies: 1
    Last Post: 11-28-2012, 01:01 PM
  3. Fields get saved in DB when I search!
    By accessnewb in forum Programming
    Replies: 2
    Last Post: 07-25-2011, 09:44 AM
  4. Entries not saved in fields
    By Lynn in forum Forms
    Replies: 4
    Last Post: 06-02-2010, 09:53 PM
  5. Replies: 9
    Last Post: 02-19-2010, 12:07 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