WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Value from a table show on rpt

 
   Home -> Office other -> General Discussions RSS
Next:  Update Query  
Author Message
SoggyCashew

External


Since: Aug 08, 2008
Posts: 69



(Msg. 1) Posted: Sun Oct 05, 2008 3:55 pm
Post subject: Value from a table show on rpt
Archived from groups: microsoft>public>access (more info?)

Hello I have a report that is unbound and Im using something like:
=Forms!AccidentEntry!AccidentEntrySubform.Form!ID
in each control source. Anyway I have a text boxes that have to have a name
from a table named tblPlantInfo. The field in this table is named PM. How can
I write a function to retrieve what is tin the tables field named PM so I can
put int in the control source on my report. Thanks!
--
Thanks,
Chad
Back to top
Login to vote
John W. Vinson

External


Since: Jan 29, 2004
Posts: 6246



(Msg. 2) Posted: Sun Oct 05, 2008 10:39 pm
Post subject: Re: Value from a table show on rpt [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 5 Oct 2008 15:55:21 -0700, SoggyCashew
<SoggyCashew.RemoveThis@discussions.microsoft.com> wrote:

>Hello I have a report that is unbound and Im using something like:
>=Forms!AccidentEntry!AccidentEntrySubform.Form!ID
>in each control source. Anyway I have a text boxes that have to have a name
>from a table named tblPlantInfo. The field in this table is named PM. How can
>I write a function to retrieve what is tin the tables field named PM so I can
>put int in the control source on my report. Thanks!

Just guessing here...

=DLookUp("PM", "[tblPlantInfo]", "[ID] = " &
Forms!AccidentEntry!AccidentEntrySubform.Form!ID)

--

John W. Vinson [MVP]
Back to top
Login to vote
SoggyCashew

External


Since: Aug 08, 2008
Posts: 69



(Msg. 3) Posted: Mon Oct 06, 2008 12:30 pm
Post subject: Re: Value from a table show on rpt [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply John! I got it with =DLookUp("[HR]","tblPlantInfo")
--
Thanks,
Chad


"John W. Vinson" wrote:

> On Sun, 5 Oct 2008 15:55:21 -0700, SoggyCashew
> <SoggyCashew.RemoveThis@discussions.microsoft.com> wrote:
>
> >Hello I have a report that is unbound and Im using something like:
> >=Forms!AccidentEntry!AccidentEntrySubform.Form!ID
> >in each control source. Anyway I have a text boxes that have to have a name
> >from a table named tblPlantInfo. The field in this table is named PM. How can
> >I write a function to retrieve what is tin the tables field named PM so I can
> >put int in the control source on my report. Thanks!
>
> Just guessing here...
>
> =DLookUp("PM", "[tblPlantInfo]", "[ID] = " &
> Forms!AccidentEntry!AccidentEntrySubform.Form!ID)
>
> --
>
> John W. Vinson [MVP]
>
Back to top
Login to vote
John W. Vinson

External


Since: Jan 29, 2004
Posts: 6246



(Msg. 4) Posted: Mon Oct 06, 2008 2:50 pm
Post subject: Re: Value from a table show on rpt [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 6 Oct 2008 12:30:02 -0700, SoggyCashew
<SoggyCashew.RemoveThis@discussions.microsoft.com> wrote:

>Thanks for the reply John! I got it with =DLookUp("[HR]","tblPlantInfo")

This will find the first (actually an arbitrary) record from tblPlantInfo
unless you add a criterion as a third argument. If that's what you want,
fine...
--

John W. Vinson [MVP]
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> General Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET