473,385 Members | 1,445 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 doesn't support this property or method occuring beacuse of Query why?

after doing the select statement as you asked me to, that is to put distinct, the error above has started reoccuring again. I did a check by removing the data connection to this query and the error did not occur, how can I resolve this?
This is how i did the join using visual basic to the Access Database

Expand|Select|Wrap|Line Numbers
  1. DVehQry.DatabaseName = App.Path & "\VEHICLE_TRACKER.mdb"
  2. DVehQry.RecordSource = "VEH_QRY"
  3.  
then to the various text box that would display the data in the field of the Db, i used this code

Expand|Select|Wrap|Line Numbers
  1.     Text1(3).DataField = "VEHICLE_TYPE"
  2.     Text1(6).DataField = "VEHICLE_NO"
  3.     Text1(4).DataField = "ENGINE_NO"
  4.     Text1(5).DataField = "CHASIS_NO"
  5.     Text2(0).DataField = "VEH_LIC_ISST"
  6.     Text2(1).DataField = "VEH_LIC_EXPT"
  7.     Text2(2).DataField = "H_PER_ISST"
  8.     Text2(3).DataField = "H_PER_EXPT"
  9.     Text2(4).DataField = "RD_WORTH_ISST"
  10.     Text2(5).DataField = "RD_WORTH_EXPT"
  11.     Text2(6).DataField = "INS_CERT_ISST"
  12.     Text2(7).DataField = "INS_CERT_EXPT"
  13.     Text2(8).DataField = "MOB_ADV_ISST"
  14.     Text2(9).DataField = "MOB_ADV_EXPT"
  15.     Text2(10).DataField = "H_DUTY_PER_ISST"
  16.     Text2(11).DataField = "H_DUTY_PER_EXPT"
  17.  
Nov 17 '06 #1
2 1384
sashi
1,754 Expert 1GB
after doing the select statement as you asked me to, that is to put distinct, the error above has started reoccuring again. I did a check by removing the data connection to this query and the error did not occur, how can I resolve this?
This is how i did the join using visual basic to the Access Database

Expand|Select|Wrap|Line Numbers
  1. DVehQry.DatabaseName = App.Path & "\VEHICLE_TRACKER.mdb"
  2. DVehQry.RecordSource = "VEH_QRY"
  3.  
then to the various text box that would display the data in the field of the Db, i used this code

Expand|Select|Wrap|Line Numbers
  1.     Text1(3).DataField = "VEHICLE_TYPE"
  2.     Text1(6).DataField = "VEHICLE_NO"
  3.     Text1(4).DataField = "ENGINE_NO"
  4.     Text1(5).DataField = "CHASIS_NO"
  5.     Text2(0).DataField = "VEH_LIC_ISST"
  6.     Text2(1).DataField = "VEH_LIC_EXPT"
  7.     Text2(2).DataField = "H_PER_ISST"
  8.     Text2(3).DataField = "H_PER_EXPT"
  9.     Text2(4).DataField = "RD_WORTH_ISST"
  10.     Text2(5).DataField = "RD_WORTH_EXPT"
  11.     Text2(6).DataField = "INS_CERT_ISST"
  12.     Text2(7).DataField = "INS_CERT_EXPT"
  13.     Text2(8).DataField = "MOB_ADV_ISST"
  14.     Text2(9).DataField = "MOB_ADV_EXPT"
  15.     Text2(10).DataField = "H_DUTY_PER_ISST"
  16.     Text2(11).DataField = "H_DUTY_PER_EXPT"
  17.  
Hi there,

Please provide the SQL statement used, as it would ease in providing solutions. Good luck & Take care.
Nov 17 '06 #2
Hi there,

Please provide the SQL statement used, as it would ease in providing solutions. Good luck & Take care.
the SQl statement used is

Expand|Select|Wrap|Line Numbers
  1. SELECT DISTINCT  
  2. H_DUTY_PER.H_DUTY_PER_ISST, 
  3. H_DUTY_PER.H_DUTY_PER_EXPT, 
  4. H_PER.H_PER_ISST, 
  5. H_PER.H_PER_EXPT, 
  6. INS_CERT.INS_CERT_ISST, 
  7. INS_CERT.INS_CERT_EXPT, 
  8. MOB_ADV.MOB_ADV_ISST, 
  9. MOB_ADV.MOB_ADV_EXPT, 
  10. RD_WORTH.RD_WORTH_ISST, 
  11. RD_WORTH.RD_WORTH_EXPT, 
  12. VEH_DESCRIPTION.VEHICLE_NO, 
  13. VEH_DESCRIPTION.ENGINE_NO, 
  14. VEH_DESCRIPTION.CHASIS_NO, 
  15. VEH_LIC.VEH_LIC_ISST, 
  16. VEH_LIC.VEH_LIC_EXPT, 
  17. VEH_TYPE.VEHICLE_TYPE
  18. FROM  
  19. H_DUTY_PER , 
  20. H_PER, INS_CERT, 
  21. MOB_ADV, 
  22. RD_WORTH, 
  23. VEH_DESCRIPTION, 
  24. VEH_LIC, VEH_TYPE
  25. WHERE
  26.  VEH_DESCRIPTION.VEHICLE_ID=VEH_TYPE.VEHICLE_ID And VEH_DESCRIPTION.VEHICLE_NO=VEH_LIC.VEHICLE_NO AND VEH_DESCRIPTION.VEHICLE_NO=H_DUTY_PER.VEHICLE_NO AND VEH_DESCRIPTION.VEHICLE_NO=H_PER.VEHICLE_NO AND VEH_DESCRIPTION.VEHICLE_NO=INS_CERT.VEHICLE_NO AND VEH_DESCRIPTION.VEHICLE_NO=MOB_ADV.VEHICLE_NO AND VEH_DESCRIPTION.VEHICLE_NO=RD_WORTH.VEHICLE_NO;
  27.  
Nov 17 '06 #3

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

Similar topics

54
by: tshad | last post by:
I have a function: function SalaryDisplay(me) { var salaryMinLabel = document.getElementById("SalaryMin"); salaryMinLabel.value = 200; alert("after setting salaryMinLabel = " +...
4
by: Otis Hunter | last post by:
I have been fighting with this for days and your expert help is needed! Below is the code I am executing which results with "Object doesn't support this property or method". The error is occuring...
0
by: Otis Hunter | last post by:
I have been fighting with this for days and your expert help is needed! Below is the code I am executing which results with "Object doesn't support this property or method". The error is occuring...
5
by: Michael Moreno | last post by:
Hello, In a class I have this code: public object Obj; If Obj is a COM object I would like to call in the Dispose() method the following code: ...
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...
13
by: TS | last post by:
Say i have a class car with properties: Color, Make, Model, Year, DriverID And a Driver class with properties: DriverID, Name The driverID PRIVATE property is the id of the driver from say a...
5
by: John Olbert | last post by:
Subject: Error is Object doesn't support this property or method I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX Control. I get the following runtime error-- "Object...
8
by: Kevin Blount | last post by:
I'm tyring to access an object created by using a method from a third party API. The documentation tells me what object should be return, and the properties of that object, but when I try and...
0
ADezii
by: ADezii | last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be: Can I add New Records to the...
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
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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...
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...

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.