Results 1 to 2 of 2
  1. #1
    projectpupil7 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    37

    Open Tab Control for data entry when no records in table for user

    Hi All, I am trying to open TabCtl86 forms in AddData mode if there are no records in a table for a user chosen form cboClientSearch. The tab control has three pages on it. At the moment I am getting an error saying "the form named '0' is either misspelled or doesn't exist".

    I am using this at the moment; DoCmd.OpenForm Controls!TabCtl86, acFormDS, , , acFormAdd, acDialog



    Any help would be very much appreciated as would code suggestions.

    Thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Don't really understand the issue. Tab controls aren't 'opened' - they just sit on a form like any other control. Can't use OpenForm on a subform. Open main form and subforms tag along.

    Shouldn't matter if there aren't already records, should be able to add new record in the subform.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Lock control after data entry
    By Scott_80 in forum Programming
    Replies: 12
    Last Post: 01-07-2015, 03:35 PM
  2. Tab Control for Data Entry Form
    By RayMilhon in forum Forms
    Replies: 6
    Last Post: 10-13-2014, 03:36 PM
  3. Replies: 3
    Last Post: 10-21-2013, 10:51 AM
  4. Replies: 4
    Last Post: 06-30-2012, 02:01 AM
  5. Replies: 1
    Last Post: 12-15-2011, 04:26 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