🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.databases.ms-access
Article #198

Re: is it that complex?

#198
From: Douglas J. Steele
Date: Sun, 23 May 2004 11:21
57 lines
2924 bytes
The problem is that you're using a lookup field in your "things" table. It
may look as though you're storing the description, but it's not present in
the table. You need to create a query that joins your table to the table
that contains the description, and get the description that way.

This is one of the reasons we recommend never to use the Lookup field type
(see "The Evils of Lookup FIelds in Tables" at
http://www.mvps.org/access/lookupfields.htm )

-- 
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"asd987" <asd987@home.nl> wrote in message
news:c8q0k8$47o$1@news2.tilbu1.nb.home.nl...
> Hi,
>
> I have a problem to print the correct data to a file.
>
> I have two tables:
> 1. "names" with the records
> -  "id" (autonumber / primary key)
> - "description" (text)
>
> 2. "things" with the records
> - "date" (date)
> - "object" (memo)
> - "name" (this refers isong lookup to table "names" the record "id")
>
>
> I do:
>
> print #1, rstfile2!date
> print #1, rstfile2!object
> print #1, rstfile2!name
>
> As expected I get a number on the third print-command. I tried several
> things to get the "description" of the "id" printed but didn't succeed.
>
> Even when I do a
>
> Select Case rstfile1!id
> Case rstfile2!name
> Print #1, rstfile1!description
> End Select
>
> while looping rstfile2  it doesn't work. Above that I think it could be
done
> much more easy than using the Select Case and looping-story. But how?
>
> Thanks,
>
> Sjoerd
>
>
Technical Details
Message-ID: <ew0bMgLQEHA.3052@TK2MSFTNGP12.phx.gbl>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!prodigy.com!newsfeed.cwix.com!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
References: <c8q0k8$47o$1@news2.tilbu1.nb.home.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff0ac,26e13a2853c27e7e
X-Google-Thread: 102b1d,26e13a2853c27e7e
X-Google-Thread: 11387c,26e13a2853c27e7e
X-Google-Thread: 111a5a,26e13a2853c27e7e
X-Google-Thread: 101bdd,26e13a2853c27e7e
X-Google-Thread: fe218,26e13a2853c27e7e
X-Google-Thread: 1128b1,26e13a2853c27e7e
X-Google-Thread: 113a89,26e13a2853c27e7e
X-Google-Attributes: gidff0ac,gid102b1d,gid11387c,gid111a5a,gid101bdd,gidfe218,gid1128b1,gid113a89,public
From: "Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com>
References: <c8q0k8$47o$1@news2.tilbu1.nb.home.nl>
Subject: Re: is it that complex?
Date: Sun, 23 May 2004 07:21:08 -0400
Lines: 59
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <ew0bMgLQEHA.3052@TK2MSFTNGP12.phx.gbl>
Newsgroups: comp.databases.ms-access,de.comp.datenbanken.ms-access,dk.edb.database.ms-access,es.comp.bd.ms-access,microsoft.public.access.forms,microsoft.public.access.formscoding,microsoft.public.office.access.forms,microsoft.public.office.access.formscoding
NNTP-Posting-Host: cpe00104c12bf15-cm014500008513.cpe.net.cable.rogers.com 24.156.25.57
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!prodigy.com!newsfeed.cwix.com!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl