Results 1 to 6 of 6
  1. #1
    AmyHill is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3

    Syntax-reference to pages

    Greetings,
    I'm having a problem getting the syntax correct when referring to a field on a page/tab.
    The database is set up with 3 pages, there is a main page(frmMain) and two other pages with subforms(frmLetter, frmVoid) attached to the main form.


    On the subform in the default value property i have the following syntax,
    Forms![frmMain]![CheckNumber] but it is not working. I think it has something to do with the pages?

    any suggestions?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Maybe this link will help. Tab Controls do not affect reference syntax. It is as if the Tab Control is not there.

  3. #3
    AmyHill is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3
    Thanks, I refence it before posting. I'm just not doing something right.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would put code in the Current Event of your SubForm to set the Default property of that control. I don't believe you can just reference another control in that property.

  5. #5
    AmyHill is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3
    Works Great! thanks a bunch!

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad I could help.

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

Similar Threads

  1. pages
    By hokie in forum Reports
    Replies: 0
    Last Post: 07-16-2009, 10:08 AM
  2. sql syntax error
    By SMAlvarez in forum Access
    Replies: 1
    Last Post: 03-12-2009, 09:43 PM
  3. Using tab control pages
    By queenbee in forum Programming
    Replies: 1
    Last Post: 02-28-2009, 09:43 PM
  4. Hide zero value in report and date syntax
    By Alex Motilal in forum Access
    Replies: 0
    Last Post: 11-16-2008, 09:11 AM
  5. Syntax Error In Insert Into Statement
    By frankvfox in forum Queries
    Replies: 1
    Last Post: 09-09-2008, 12:35 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