Results 1 to 6 of 6
  1. #1
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114

    Expression used in query not appearing in related form's field

    Hi there,



    I created a query that has an expression field (it only took me 3 tries to get the expression right [Whooo hooo!]!
    Click image for larger version. 

Name:	Step 1.png 
Views:	13 
Size:	19.9 KB 
ID:	26451

    I used the expression field, along with a few other fields in a form:
    Click image for larger version. 

Name:	Step 2.png 
Views:	13 
Size:	28.2 KB 
ID:	26452

    However, when I set the form to a form view, the field appears like this:
    Click image for larger version. 

Name:	Step 3.png 
Views:	13 
Size:	24.1 KB 
ID:	26453

    The words, that should appear are Diode, Rectifier or what ever. The form field is set as a text field as are the combined fields. I don't know what is wrong.

    Thank you for any assistance you can give me.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    That is correct. But you don't have to stick with Expr1, you can name it whatever you want.
    but yes,just assign the box to the field in the query.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    I presume the recordsource to your form is 'Nick' since that is the name of your query?

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    Assuming the rest of the form controls are bound to the same query as the misbehaving control, I'd reset the control source to any other field in that query, even if you already have it bound to some other control. If you then get data in the control, there could be an issue with the expression, which you should post. I'd switch it back and see what happens. If you don't get data from another field, I'd replace that control (delete, save/close/open, add new textbox). I looked for the obvious, such as having the same name for the query field and control, Name Autocorrect, but your textbox seems to be named Text100 or something like that. Form corruption is another possibility, since you should be able to bind a calculated query field to a textbox.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114
    Ranman256, Ajax, & Micron,

    Thank you so much for your responses. The field is now working great.

    Rebecca

  6. #6
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    If you would be so kind, we all benefit from knowing the solution. Others who have the same issue may end up here, but won't know what worked.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-06-2016, 06:05 PM
  2. Replies: 3
    Last Post: 01-05-2016, 12:25 PM
  3. Replies: 3
    Last Post: 09-12-2015, 10:16 AM
  4. Replies: 4
    Last Post: 04-26-2012, 11:04 AM
  5. Replies: 2
    Last Post: 07-16-2011, 07:56 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