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

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.
Jan 20 '10 #1

✓ answered by Echidna

Hi,

Only thing i can think of is adding a column to the primary table which would reference the ID of the secondary table, then populate the primary table's value from a function call like :

http://mvps.org/access/strings/str0003.htm

Hope this helps.

Cheers

Leon

7 2081
Echidna
53
Hi Dave,

in the query designer.
Open the tables you wish to display data from.

if no relationship exists between the two tables, you can create one by dragging the ID column from Table one over to the corresponding column in table two (establishing a relationship),

The columns selected from table two will display the data where the ID is equal to Table One.

hope this helps, and is not too vague...

Cheers

Leon
Jan 20 '10 #2
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 matched
Jan 20 '10 #3
Echidna
53
does the main table have any reference to the data held within the second table?

if so, you can set the query column to a dlookup to display the data within the desired column

Cheers

Leon
Jan 20 '10 #4
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. Blackburn
Jan 20 '10 #5
Echidna
53
Hi,

Only thing i can think of is adding a column to the primary table which would reference the ID of the secondary table, then populate the primary table's value from a function call like :

http://mvps.org/access/strings/str0003.htm

Hope this helps.

Cheers

Leon
Jan 21 '10 #6
Hi Leon,
Thanks for your help, I will give this a go
Jan 21 '10 #7
Echidna
53
Glad I could help

Cheers

Leon
Jan 22 '10 #8

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

Similar topics

3
by: Paul Janssen | last post by:
Hello! Can anyone help me out with the following situation: (a) a single query with 550 id's in the IN-clause resulting into 800+ seconds; (b) 550 queries with a single id in the IN-clause...
2
by: Wilder | last post by:
I'm trying to update a field in one table with the minimum values of the field in another table. The two tables are linked via a common field. I want to populate a date field in one table with...
6
by: S. Graefner | last post by:
Hello Folks, I'm a Relitive newbie to the blood sport of MS ACCESS. I have designed and built a database with multiple, Related, tables. The db works well, more by good luck then good planing I...
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
0
by: rayone | last post by:
Hi folks. I need advice. 2 options, which do you think is the better option to display/retrieve/report on the data. Keep in mind reporting (Crystal), SQL Performance, VB Code, usability,...
22
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4....
4
by: P.Jaimal | last post by:
Hello,I have a database that records leaves taken by employees.Every record has employee name,leavefrom(to record the starting date of leave) & leaveupto( for the leave end date).My requirement is...
1
by: assgar | last post by:
Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The...
5
by: Harlequin | last post by:
Hi there, I'm something of a newcomer to MS Access so it's more than likely that my question is extremely elementary. I have a form whose record source is a single table in my database. It's...
25
by: Darsin | last post by:
Hi all I need to perform a summation on a column of a table based on a criteria given in another column in the same table. The catch is i need to perform different sums according to the number of...
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
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
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.