Results 1 to 6 of 6
  1. #1
    engr_saud1 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    10

    Data entered into form is not shown in Table


    Hi ,
    i have a data/text field in the table "Current status" . It calculates value using an IIF statement in the Form. But that value is "not appearing " in the table.
    Moreover , all the data that is entered using expression builder in respective datafields in the form is " not reflected" in the table. Please help !!!
    Click image for larger version. 

Name:	Form.jpg 
Views:	14 
Size:	53.2 KB 
ID:	11865

  2. #2
    Missinglinq's Avatar
    Missinglinq is online now VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    It is very seldom appropriate to store Calculated Fields; they should simply be re-calculated, as needed, for other Forms, Queries, Reports, etc.

    The Expression Builder places the Calculations in the Control Source of a given Textbox. A Control Source can be populated with an Expression, or with the name of the Field the Control is Bound to, but it cannot do both at the same time!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Saving a calculated result requires VBA code. However, I don't think necessary to save result in this case.

    How is data entered by using expression builder?

    If form is bound to data (RecordSource property is set) and controls are bound to fields, entry/edit in controls will pass directly to record in 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.

  4. #4
    Missinglinq's Avatar
    Missinglinq is online now VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by June7 View Post

    ...How is data entered by using expression builder...
    The Expression Builder can be called up from the Control Source or Validation Properties, but is normally done from the former, which is the case here, I suspect, which is why there's nothing (as is proper) being saved to the Table.

    As I said, I don't believe I've ever had occasion to use it, and actually had to experiment to find out how it worked!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I understand calling up the expression builder from those locations but that just creates a calculation and doesn't 'enter data', no different from IIf expression for the CurrentStatus value. Doesn't matter how expression is created (manually or with builder), calculated result does not save to table without VBA code. So I am not sure what the OP was trying to convey.
    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.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Perhaps you could describe to us WHAT you would like to happen in plain English.
    You might research Bound vs Unbound forms to get some insight on how these are meant to work.

    Also, reading, understanding and using these ten suggestions could be helpful with your Access activity.
    They are basic, but very relevant.

    http://www.mvps.org/access/tencommandments.htm

    The Ten Commandments of Access:

    1) Thou shalt design normalized tables and understand thy fields and relationships before thou dost begin.

    2) Thou shalt never allow thy users to see or edit tables directly, but only through forms and thou shalt abhor the use of "Lookup Fields" which art the creation of the Evil One.

    3) Thou shalt choose a naming convention and abide by its wisdom and never allow spaces in thy names.

    4) Thou shalt write comments in your procedures and explain each variable.

    5) Thou shalt understand error handling and use it faithfully in all thy procedures.

    6) Thou shalt split thy databases.

    7) Thou shalt not use Autonumber if the field is meant to have meaning for thy users.

    8) Thou shalt not copy and paste other people's code without at least attempting to understand what it does.

    9) Thou shalt not use "SendKeys", "Smart Codes" or "GoTo" (unless the GoTo be part of an OnError process) for these will lead you from the path of righteousness.

    10) Thou shalt back-up thy database faithfully, working not on thy Production Database, but on the Prototype Copy, as it is right and good to do.

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

Similar Threads

  1. Replies: 2
    Last Post: 10-09-2012, 12:52 AM
  2. Replies: 2
    Last Post: 07-30-2012, 03:26 PM
  3. Code to sort data shown on a split form
    By meissnerb in forum Programming
    Replies: 1
    Last Post: 05-03-2012, 04:34 PM
  4. Imported data in table not shown in Forms
    By Zildjyn in forum Import/Export Data
    Replies: 9
    Last Post: 12-30-2011, 01:34 PM
  5. Replies: 4
    Last Post: 12-18-2011, 05:55 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