Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    1

    Object doesn't support this property or method error

    I get an object doesn't support this property or method error when I execute this code... The bold statement below is where the debugger focuses in on, all other code works. Any incite would be greatly appreciated. Thanks



    Private Sub Form_Load()
    DoCmd.OpenForm "frmDateOfHire", , , , , acHidden
    DoCmd.OpenForm "frmSalary", , , , , acHidden
    DoCmd.OpenForm "frmClient", , , , , acHidden
    DoCmd.OpenForm "frmSupervisor", , , , , acHidden
    DoCmd.OpenForm "frmProject", , , , , acHidden
    DoCmd.OpenForm "frmPrimaryVendor", , , , , acHidden
    DoCmd.OpenForm "frmContractEmployee", , , , , acHidden

    End Sub

    Private Sub Next_frmDateOfHire_Click()

    'Calls the Date Of Hire form, and hides Employee form
    Forms!frmDateOfHire.Visible = True
    Me.Visible = False

    End Sub

  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
    If it helps, the code looks like it should work. Do you have some corruption? Import your db into a new db and then Compact and Repair and then see if you still have the same issue.

  3. #3
    Join Date
    Feb 2009
    Posts
    7
    Have you got any missing references in Tools-References?

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

Similar Threads

  1. Replies: 1
    Last Post: 08-10-2008, 01:09 AM
  2. Need some support to finish DB
    By Estyl in forum Access
    Replies: 0
    Last Post: 04-22-2008, 04:34 AM
  3. Replies: 0
    Last Post: 11-04-2006, 02:31 AM
  4. Higlight an object on a map
    By avgjoe in forum Access
    Replies: 0
    Last Post: 07-21-2006, 06:52 AM
  5. 'On Open' Property
    By emilylu3 in forum Forms
    Replies: 1
    Last Post: 12-08-2005, 02:28 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