Results 1 to 3 of 3
  1. #1
    TinaCa is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    87

    Include Text in text box with the field

    This used to be really easy. I have a text box bound to a field and I am trying to put text in the field also. The code I've been trying to use is in the text box is:



    [crewname]& "Payroll Detail"

    I am getting a syntax error. This used to be really easy - what did they change now?

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    If the text box is bound to the field then you have to have the field ONLY in the control source - [crewname]

    To store both in the table you can use the form's BEFORE UPDATE event to append the words to it but why would you be wanting to add that anyway?

  3. #3
    TinaCa is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    87
    I copied the code for the page number and inserted my text and the field name. I know cheating but it worked so it looked like this:

    ="Payroll Detail" & [crewname]

    Thanks Bob you always come through.

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

Similar Threads

  1. Replies: 15
    Last Post: 04-01-2011, 11:41 AM
  2. Replies: 10
    Last Post: 12-11-2010, 11:01 PM
  3. Replies: 1
    Last Post: 11-05-2010, 04:31 PM
  4. Replies: 2
    Last Post: 05-05-2010, 02:52 PM
  5. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 AM

Tags for this Thread

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