Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Access

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-23-2009, 10: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, 08:27 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Super Moderator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 3,432
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"

Last edited by RuralGuy; 02-28-2009 at 02:47 PM.
Reply With Quote
  #3  
Old 02-28-2009, 01: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 On
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-10-2008 12:09 AM
Need some support to finish DB Estyl Access 0 04-22-2008 03:34 AM
Is Access support CASE Expression as SQL Server? winwin Queries 0 11-04-2006 12:31 AM
Higlight an object on a map avgjoe Access 0 07-21-2006 05:52 AM
'On Open' Property emilylu3 Forms 1 12-08-2005 12:28 PM


All times are GMT -8. The time now is 05:55 PM.


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