Expression result not entered in table

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default Expression result not entered in table

    How do I get the result of an expression entered in a table? I have this
    expression as the control source: =[Sample Size]-[Edible Kernels]-[Inedible
    Kernels] but I need the result of this expression such as: 10.2 entered in
    the field named: "ForMat" in my table...What should I do?...Thanks..>Randy


    Kerman Guest

  2. Similar Questions and Discussions

    1. How to display result from two different table
      Hi all Iam in a problem. Anyone plz help me in retreving data into single datagrid from two different queries. Thanks in adavance vasu
    2. Problem with casting when using common-table-expression
      Hi everyone, I have a very strange problem. I'm not an expert with DB2, but I don't think I ever faced that kind of problem with any other DBMS....
    3. Changing a html table when new data is entered into SQL table.
      Hi all, I was wondering if anyone has any ideas on how I would go about this task. What I have is a html table which is populated from 2 different...
    4. Result precision and scale for decimal arithmetic expression and
      Here is your answer which you can also find by using ESQL/C program to describe the query and then use PRECISION and SCALE arguments to see the...
    5. Result precision and scale for decimal arithmetic expression and aggregate function
      Lan Huang wrote in message <48e0b0fb.0306270915.2a98365c@posting.google.com>... It depends. The easiest way to tell is to run your query...
  3. #2

    Default Re: Expression result not entered in table

    Would it represent an error if there was ever a case where the ForMat field
    did not match the formula?

    If so, use a query with calculated field instead of storing the dependent
    data in your table. In query design view, type this into a fresh column on
    the Field row:
    ForMat: [Sample Size]-[Edible Kernels]-[Inedible Kernels]
    Since the query can never be wrong, your worries are over.

    If there could be a valid difference, you will need to enter the data
    through a form, and use the AfterUpdate event of all 3 fields to put the
    result into the ForMat text box. The Event Procedure will look like this:

    Me.ForMat = Me.[SampleSize] - Me.[Edible Kernels] - Me.[Inedible
    Kernels]

    --
    Allen Browne - Microsoft MVP. Perth, Western Australia.
    Tips for Access users - [url]http://allenbrowne.com/tips.html[/url]
    Reply to the newsgroup. (Email address has spurious "_SpamTrap")

    "Kerman" <kerspi@inreach.com> wrote in message
    news:6VdTa.805$Hh5.683@news.inreach.com...
    > How do I get the result of an expression entered in a table? I have this
    > expression as the control source: =[Sample Size]-[Edible
    Kernels]-[Inedible
    > Kernels] but I need the result of this expression such as: 10.2 entered in
    > the field named: "ForMat" in my table...What should I do?...Thanks..>Randy

    Allen Browne Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139