Results 1 to 4 of 4
  1. #1
    P.Hofman is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    2

    (simple) Expressions give error message

    I've just started working with access and I'm encountering a problem at the very start. Perhaps it's just a simple issue, but help files and browsing this forum doesn't give the answer.

    I've made a very simple table with customer contact information. I have a field for "street" and a field for "number". When I'm making a form I want to combine them. I'm using [street] & " " & [number] as expression and I get an error message (. Combining other fields sometimes works and sometimes gives the same error. All the fields are defined as text fields, so I'm not sure where the difference comes from.



    What am I doing wrong?

    Edit: Ok I've found it myself 5 minutes after making this post.....
    The name the wizard gives to the box is the same as the field name, combining it with other field names made it think it was a circular problem. Changing the name of the textbox was the solution.

  2. #2
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows XP Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    A valuable lesson indeed.

    Remember this one as it will bite you again.

    Always name Text Boxes etc differently to the Control Source.

  3. #3
    P.Hofman is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    2
    I created the form using the wizard. So I guess I have to change the names myself if I want to do 'extra' things to a text box.

  4. #4
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows XP Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    I always name my Text Boxes with txtNameOfField

    The wizard will find this Control Name.

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

Similar Threads

  1. Replies: 3
    Last Post: 11-22-2009, 07:46 AM
  2. Text too long, error message
    By taylormotm in forum Access
    Replies: 13
    Last Post: 06-18-2009, 07:24 PM
  3. where do i start with this error message?
    By Student4Life in forum Access
    Replies: 0
    Last Post: 01-09-2009, 04:12 PM
  4. FROM Clause error message
    By skylite in forum Queries
    Replies: 2
    Last Post: 10-23-2008, 05:47 AM
  5. If / Then Error Message
    By Schwagr in forum Forms
    Replies: 4
    Last Post: 03-30-2006, 06:28 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