A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

filling a field in a continuous form with a field from a table



 
 
Thread Tools Display Modes
  #1  
Old March 30th, 2010, 01:32 AM posted to microsoft.public.access.reports
m galvin
external usenet poster
 
Posts: 12
Default filling a field in a continuous form with a field from a table

I have a form with the fields: date, client, atty, time, billable and
description. All these fields update the Time Sheet Table.

I want the atty field to automatically take the attorney's name from the
table Attorney which contains one field called Atty.

So for I can only figure out how to use a combo box to chose the Attorney
table field.
  #2  
Old March 31st, 2010, 03:00 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default filling a field in a continuous form with a field from a table

You could set the default value of the control using DLookup().
=DLookup("Atty","tblAttorney")
This could be a locked combo box that displays whatever value you want or
can derive from tblAttorney.
--
Duane Hookom
Microsoft Access MVP


"m galvin" wrote:

Duane,

I do that now. I want to eliminate the combo box. I want the control to
show the atty's initials without having to use a combo box. Example: when
the user opens the form the would see: Date: blank box, Client: blank
box, Atty: DH (using your initials for this example), Time: blank box,
Description: blank box. All the controls except for Atty would be tab stops
and the user would input the info. The initials (DH) displayed in the Atty
control I am trying to use the source Attorney Table, Atty Field in the
Table. I can not figure out how to do this. With the combo box I am using
now the user selects the atty's initials from the drop down list. In this
case the list would list only one set of initials, DH, which is the only
atty stored in the Attorney Table.

"Duane Hookom" wrote:

Your combo box to select the atty value can be set to display the atty, the
name, or both based on the Row Source, Column Count, and Column Widths. You
only want to store the atty field.

--
Duane Hookom
Microsoft Access MVP


"m galvin" wrote:

I have a form with the fields: date, client, atty, time, billable and
description. All these fields update the Time Sheet Table.

I want the atty field to automatically take the attorney's name from the
table Attorney which contains one field called Atty.

So for I can only figure out how to use a combo box to chose the Attorney
table field.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.