Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Access

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-23-2009, 09:20 AM
Novice
 
Join Date: Feb 2009
Posts: 1
rmh201 is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 02-28-2009, 07:27 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,263
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

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"
Reply With Quote
  #3  
Old 02-28-2009, 12:31 PM
Novice
 
Join Date: Feb 2009
Posts: 7
Jas_The_Ace is on a distinguished road
Default

Have you got any missing references in Tools-References?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -8. The time now is 02:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.