473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Object Does Not Support this Property or Method

I have a similar question to the OP. I currently have a form "bills" that has two subforms billsupper and billslower. When the main form loads the upper subform is visible and the lower one is not. When you double click on the one of the records on billsupper i then make billslower visible and then try to update the record source based on which one was clicked but i get the same object error.
Expand|Select|Wrap|Line Numbers
  1. Private Sub BillShtName_DblClick
  2. Forms!frmBills!sfmBillsLower.Visible = True
  3.  
  4. strBillType = Me.BillType
  5.  
  6. Forms!frmBills!sfmBillsLower.RecordSource = "SELECT BillsFormLower.* FROM BillsFormLower WHERE (((BillsFormLower.BillType)='" & strBillType & "'));"
  7. end sub
Feb 21 '09 #1
5 3281
NeoPa
32,556 Expert Mod 16PB
Scuba,

Welcome to Bytes!

I have moved your post to it's own thread as it's not a part of the previous one (as that is fully answered, and you don't have a solution, it can't be).

To move forward, I think it may help to know which line the error occurred on. I have assumed from the limited information in your post that the error message text is is the same as I've used for the subject of the thread. If this is not the case then please post that too.

I did have a scan over the code first but didn't see anything that would obviously cause that error by the way.
Feb 21 '09 #2
DonRayner
489 Expert 256MB
At first glance is looks like line 6 should be changed to this. Notice I added .Form before the .RecordSource

Expand|Select|Wrap|Line Numbers
  1. Forms!frmBills!sfmBillsLower.Form.RecordSource = "SELECT BillsFormLower.* FROM BillsFormLower WHERE (((BillsFormLower.BillType)='" & strBillType & "'));"
Feb 21 '09 #3
This worked! Thanks so much for your help
Feb 23 '09 #4
NeoPa
32,556 Expert Mod 16PB
Referring to Items on a Sub-Form may be helpful then.
Feb 23 '09 #5
DonRayner
489 Expert 256MB
@scubahood
You're welcome, glad I could help. Please do take the time to check out the link that NeoPa supplied.
Feb 23 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Roberta McGervey | last post by:
I have the following code: <Script LANGUAGE=vbscript RUNAT=Server> for i =0 to document.form1.elements.count-1 response.write "test" next
10
by: Rohan Hattangdi | last post by:
I get the following error message on a line that attempts to create an instance of an ADODB connection object. "Object does not support this property or method: 'Server.CreateObject' ". Now...
3
by: | last post by:
This is a semi-advanced question about ASP VBScript 5.0 classes. If you're knowledegable, please lend a hand! VBScript class instances can have properties that have objects assigned to them....
2
by: john nearing | last post by:
runing vb6 for 5 years, now on win xp. The above article explains how to reproduce the error ' object does not support this property' It does not provide a resolution. The program breaks on simple...
7
by: stellstarin | last post by:
hi all, I have a HTML page with two forms. While trying to add a hidden element in a first form by the default javascript function, the error message 'object does not support this property or...
1
by: kamleshsharmadts | last post by:
I am using Ajax with struts in web application. from jsp i am calling a function of ajax.js onclick of a button. code of that call function which calling from jsp given as below:- ...
2
by: Charles | last post by:
I have a validation script used before submitting a form. When executed it says "Object doesn't support property or method". I'm using onclick="return validate();" which should be fine. But when...
5
by: monu121 | last post by:
hi, i am getting one error "Object Does Not Support This Property or Method..." when i am using my dll file actuly i am calling my dll file in product. i am using vb 6.0. if any one is...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
0
acoder
by: acoder | last post by:
Problem When setting the FORM object's action property an "Object does not support this property or method" error occurs Browser Internet Explorer 6- Example The Javascript code: var...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.