Re: Field Relationships
- From: "John Spencer (MVP)" <spencer4@xxxxxxxxxxx>
- Date: Sun, 29 May 2005 09:05:26 -0400
Use a formula to get the circuitID.
Assumptions:
-- There is always a dash at the end of the circuit number
-- The dash at the end of the circuit number is the first dash in the string
-- The circuit number is always 5 characters long
CircuitID: MID(Str_ID,Instr(1,Str_ID,"-")-5,5)
You can use this generated circuit number to join the tables together. It can be
done directly in the query,
or you can build separate queries for each table with this calculated value and
join them,
or you can add a field to each table and use the formula to populate the new
field using an update query.
Nadia wrote:
>
> Hello and thank you in advance to anyone who may assist me.
> This will be the first of a few posts I will be making.
>
> I am trying to query data between 4 tables (Line, Load, Fuse, Recloser).
>
> The fields I'm attempting to join are:
> Line!STR_ID
> Load!NAME
> Fuse!STR_ID
> Recloser!STR_ID
>
> My problem is that no exact unique identifier field exists between the
> tables in these fields. But there is a five-digit circuit number buried
> within each these fields that match up. i.e. STR_ID= "Z12345-7788996" the
> circuit number is always before the hyphen so in this case it is "12345".
>
> The proceeding numbers vary within the fields along with the leading
> alphabetic character. Is there any possible way to join these tables so I
> may extract data?
>
> Or...
> The only way I have thought possible so far is to make another field within
> each table. By doing this I'd copy and paste each field listed above into
> Excel and find a way to grab the circuit number out of the data. I know
> there is a way to do this as well but I can't remember.
>
> Please help ASAP!
>
> Thanks.
>
> --
> Nadia
.
- Follow-Ups:
- Re: Field Relationships
- From: Nadia
- Re: Field Relationships
- References:
- Field Relationships
- From: Nadia
- Field Relationships
- Prev by Date: Re: starting powerpoint presentation in Presenter View
- Next by Date: Re: Visual Basic
- Previous by thread: RE: Field Relationships
- Next by thread: Re: Field Relationships
- Index(es):
Relevant Pages
|