473,398 Members | 2,165 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,398 software developers and data experts.

How do you connect a Query to Data control

After writting the select statement below using the word Distinct the error Object doesn't support this property or method started appearing. 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 the select statement

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.  
and 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.  
.
Please how do i resolve this issue
Nov 17 '06 #1
0 964

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

Similar topics

0
by: Kyle Goetz | last post by:
hey, i'm new to mySQL...this meaning that i have tried ~10000 times to install it and get it working over the past few weeks...and it always gives me the same error (scroll further down to see it)...
0
by: Jim | last post by:
I'm working on my first .net project using c#. I've been using activex controls embedded in a web page and wanted to do the same in ..net. My approach has been to create a windows control library...
4
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to...
3
by: Ryan Ritten | last post by:
Hey, I just started working at this new company and they gave me a simple database project to start with. yet I am starting to look like an idiot cause I can't even seem to connect to the MS...
2
by: iwdu15 | last post by:
hey, i was wondering if 1) anyone could tell me whats wrong with my code, i did a little fixing to the msdn version fo this, or 2) how to make a simple program that will connect and listen for...
1
by: perjorgen | last post by:
Hi, My asp.net can't connect to any sql database when running 1.1 I can connect to databases if I make a windows application and if if I run asp.net 2.0 Other computers have no problem...
4
by: d3vkit | last post by:
Okay so I am at a loss here. I have a website that I've previously had no trouble connecting to the mysql DB on. I have an include to a connect file with the relevant connection info, and it was...
11
by: Mikael Arhelger | last post by:
Hello, This has been posted a few times but still I could not find a way to connect to our database. We run DB2 Express on WIN2K server with XP clients. I can ping inside network and to the...
10
by: dfarney | last post by:
So I've created a Windows based application in C# that uses data from our databases on a service provider (crystaltech). The application has been deployed and has been working great on all our...
0
by: DKn | last post by:
Hello All, I am doing one C#.Net(2.0) Windows application having treeview control, with some tree nodes like "Logical disk, Memory, CPU, CDROM drive, etc.." On treeview After select event, on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.