473,396 Members | 1,676 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,396 software developers and data experts.

Invalid use of Property

344 Expert 100+
Me again.

Just added a new combo box to my select form.

Expand|Select|Wrap|Line Numbers
  1. Case "HouseEditDouble", "ParentsEditDouble", "ChildEditDouble"
  2.     cboSelectHouse.RowSource = "SELECT HouseID FROM tblHouseDoubleEntry WHERE VillageID = '" & cboSelectVillage & "' ORDER BY HouseID;"
  3. Case "SchoolEdit"
  4.     cboSchool.RowSource "SELECT SchoolID FROM tblSchoolSurvey WHERE VillageID = '" & cboSelectVillage & "' ORDER BY SchoolID;"
  5.  
  6.  
The line for cboSelecthouse, along with a dozen others, work. The new line, cboSchool, gives a compile error.

"Invalid use of Property" of cboSelectVillage

It is the same code as everywhere else, or have I missed something obvious, like a full stop or something?
Sep 26 '14 #1
5 2549
twinnyfo
3,653 Expert Mod 2GB
Have you tried using the value your SELECT statement returns and run it in the SQL window? Everything "looks" OK, but I'd like to see the string generated in line 4.
Sep 26 '14 #2
Lysander
344 Expert 100+
Sadly, this is a compile error, not a run-time error, so I can't even open the form to run it.
Sep 26 '14 #3
Lysander
344 Expert 100+
If you are totally stuffed by a stupid error, give it to a non-programmer.
"Dear wife, look at these two lines of code, what am I missing"
"They are both the same Husband dear, except, one has a '=' sign, the other does not"

Four sodding hours of looking at this, and always looking at the SQL statement, never noticed the missing '='

Thank you darling wifey.
Sep 26 '14 #4
twinnyfo
3,653 Expert Mod 2GB
Your wife is BRILLIANT!! Be sure to tell her!
Sep 26 '14 #5
zmbd
5,501 Expert Mod 4TB
might I also suggest: a hug, a kiss, and take her out for a nice dinner!
Sep 29 '14 #6

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

Similar topics

1
by: David Gerstman | last post by:
I have the following code in a mult-form project: Private Sub Form_Load() sldPackets.Min = frmStartBfv.return_first() sldPackets.Max = frmStartBfv.return_last() End Sub I wish to connect the...
0
by: Robert Hooker | last post by:
I know that this question has been batted around here for a while - and I know that sample code, using reflection and poking around inside the propertygrid class, has been posted by a kind soul.......
1
by: Andy G | last post by:
I've been getting this error all day. Could someone please look at my stored procedure and the code. I have a form that grabs and email address the user types in, calls a stored procedure with an...
5
by: Lance | last post by:
Is there any way to have a custom property display the window that appears when an invalid property value is entered in a PropertyGrid control? I'm refering to the window that has the title...
1
by: Alex | last post by:
Hi, what's happened to my project: each time I try to change any property of a control, I get an error message: "Invalid property value" and in details: "Object reference not set to an instance of...
5
by: Mark Ingram | last post by:
Hi, ive written a custom control and i would like to display the "invalid property value" dialog box for certain properties on my form if the user enters a value outside the allowed range (in the...
3
by: vunet | last post by:
Hello, I've just installed ASPXMLRPC library and testing their main function: xmlRPC ("URL", "command_name", params) The function converts all parameters to XML, sends a request to third-...
5
by: emsik1001 | last post by:
Hi I have a few combo boxes where the match is required. When I select a value and then delete it and go to another control then I get very user unfriendly message "invalid property value". ...
0
Richard Alvarez
by: Richard Alvarez | last post by:
I think my code is correct but somehow I got this invalid property value. What could possibly be wrong? i did a review on my access tables and naming conventions but still can't find anything. ...
0
kirubagari
by: kirubagari | last post by:
Dear Expert, I need to display the item that get it from database into the listview form.Attached is my code and when go to itmListItem.SubItems(2) = CommentCode i got error message invalid...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.