Hi Leon,
Thanks for your help, I will give this a go
User Profile
Collapse
Profile Sidebar
Collapse
djdaveg
Last Activity: Jan 25 '10, 08:17 AM
Joined: Jan 20 '10
Location:
-
I changed SELECT to SELECT DISTINCT and yes I changed AND to &. No need for your snotty answer at all thanks very much!!!!, So no more unnecessary replies thanks. sorry for the unnecessary brackets that Access puts in itself when the query is savedLeave a comment:
-
not that you can accurately match record by record, for example there is a column of postcode prefixes i.e. BB and town e.g. BlackburnLeave a comment:
-
Ah Ha, I think its is because you are using select *, try putting each individual field into the query, maybe that will work. If you need to know how to do this let me know.
Thanks
DaveLeave a comment:
-
Hi, thanks for your reply, however the ID numbers in the two tabels don't match, I have a database in one and a few towns and postcodes in the other, I need to reference a town and then its postcode without access using the whole column in the table and just using the one that the first part of the query has matchedLeave a comment:
-
-
Use a single row in another table for a query
I am wondering if it possible to refer to a row of data in access for a query, if I want to find a row by ID then use the next field in that row for a query without access using whole column, is this possible. -
Thanks Chip, I have now discovered where I went wrong, it was my syntax, I should have used the following
SELECT DISTINCT tbMainData2.ID, tbMainData2.URN , tbMainData2.Con tactName, tbMainData2.Res taurantName, tbMainData2.Add 1, tbMainData2.Add 2, tbMainData2.Add 3, tbMainData2.tow n, tbMainData2.cou nty, tbMainData2.pos tcode, tbMainData2.Tel ephone, tbMainData2.Con tact_Ok, tbMainData2.reg ion, tbMainData2.Res taurantorTakeaw ay, tbMainData2.geo...Leave a comment:
-
Receiving duplicate values using not equal
I am trying to get alll the results of everything in the north where the towns do not match the towns contained in a seperate table, everytime I run this I am getting 37 duplications of each record in the result.
SELECT tbMainData2.ID, tbMainData2.URN , tbMainData2.Con tactName, tbMainData2.Res taurantName, tbMainData2.Add 1, tbMainData2.Add 2, tbMainData2.Add 3, tbMainData2.tow n, tbMainData2.cou nty, tbMainData2.pos tcode, tbMainData2.Tel ephone,...
No activity results to display
Show More
Leave a comment: