![]() |
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07 If your issue is resolved...follow this link for directions on how to use the Solved thread tool! Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus" |
|
#3
|
|||
|
|||
|
Have you got any missing references in Tools-References?
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A code to change textbox property in a form? | mujaqo | Access | 1 | 08-09-2008 11:09 PM |
| Need some support to finish DB | Estyl | Access | 0 | 04-22-2008 02:34 AM |
| Is Access support CASE Expression as SQL Server? | winwin | Queries | 0 | 11-03-2006 11:31 PM |
| Higlight an object on a map | avgjoe | Access | 0 | 07-21-2006 04:52 AM |
| 'On Open' Property | emilylu3 | Forms | 1 | 12-08-2005 11:28 AM |