473,503 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access database table... very urgent plz.

38 New Member
i have a "roads" geodatabase in access. there is a table "nodes" which has fields ID(auto number), Shape(OLE Object) , Position_X(number) Position_Y(number) and node_number(number). Field node_number has duplicated values. i want to make a new table so that my field node_number do not have duplicate values. when i do it does not allow me. here is query.

SELECT distinct node_number, POINT_X, POINT_Y, Shape FROM nodes;

error message is that i can't have shape with unique value. when i remove distinct it does. i.e following query works.
SELECT node_number, POINT_X, POINT_Y, Shape FROM nodes;

how to solve this problem.....
regards
@rtist
Nov 21 '06 #1
2 1265
NeoPa
32,557 Recognized Expert Moderator MVP
I'm not sure you can get around it - that's what the err msg is trying to say.
Grouping on all those fields may work - just an idea.
Nov 21 '06 #2
MMcCarthy
14,534 Recognized Expert Moderator MVP
i have a "roads" geodatabase in access. there is a table "nodes" which has fields ID(auto number), Shape(OLE Object) , Position_X(number) Position_Y(number) and node_number(number). Field node_number has duplicated values. i want to make a new table so that my field node_number do not have duplicate values. when i do it does not allow me. here is query.

SELECT distinct node_number, POINT_X, POINT_Y, Shape FROM nodes;

error message is that i can't have shape with unique value. when i remove distinct it does. i.e following query works.
SELECT node_number, POINT_X, POINT_Y, Shape FROM nodes;

how to solve this problem.....
regards
@rtist
Because Shape is an OLE Object it is probably causing problems.

As NeoPa says try a GROUP BY first including shape in the group by then excluding it.

Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT node_number, POINT_X, POINT_Y, Shape FROM nodes
  3. GROUP BY node_number, POINT_X, POINT_Y, Shape;
  4.  
or

Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT node_number, POINT_X, POINT_Y, Shape FROM nodes
  3. GROUP BY node_number, POINT_X, POINT_Y;
  4.  
Nov 21 '06 #3

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

Similar topics

3
9217
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
1
4899
by: gary.scott | last post by:
Aaaaaarrgghh ! (that's better) I am trying to convert a field within my Oracle 9i Database that is of type BLOB (but this BLOB may contain a combination of clobs/varchars or images such as gif...
3
1907
by: TrvlOrm | last post by:
I am having great difficulty in these asp scripts, using VBscript and JavaScript. I have 4 files that all need to be linked together. The first file "Books.html" - needs to search for a Book...
1
1428
by: Jucius | last post by:
After a common use of Access with a Delphi Application, I restart the application an it does not succeed in accessing the database. (after 3 months of use, nothing special was done !) I try to use...
2
1377
by: ral amo | last post by:
We've a project for which we are using MS Access as the back end and VB as front end. there are three terminals fromn whichusers access the system. The table has 17 rows. When the number of records...
2
1813
by: Xeijin | last post by:
URGENT I have an assignment to hand in tomorrow, I need to know how to perform numeric calculations in access, I dont know very much about databases so consider this a beginner's query! Well...
15
4564
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
1
1449
by: TexCube | last post by:
Hello everyone, I have an urgent question. Can data be pulled from an access database table to create a directory that can be printed out and bound together? I need to have each row of a...
9
2654
by: =?Utf-8?B?TUNN?= | last post by:
I'm sure the answer to my question varies depending on the situation, but I am looking for a general "best practice". If I have an asp.net application and I load certain data from a database,...
0
7087
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
7281
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
7334
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...
1
6993
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...
1
5014
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...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.