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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

[ID]



 
 
Thread Tools Display Modes
  #1  
Old March 1st, 2009, 09:10 AM posted to microsoft.public.access.forms
Kevbro7189
external usenet poster
 
Posts: 35
Default [ID]

I have 2 tables LOG and ADDRESS. In LOG I have a lookup field (ADD LU)
related to ADDRESS. The lookup contains the ID for address. How do I get
ADD LU to automatically populate with the ID value available?
I have used the Default property in the table to select a specific ID value
before but I can’t seem to get the equation right for the ID.

  #2  
Old March 1st, 2009, 07:09 PM posted to microsoft.public.access.forms
Ian
external usenet poster
 
Posts: 485
Default [ID]

Better to use a combobox in the form rather than a lookup field. If you
haven't done it before just insert a combobox into the form and the wizard
will walk you thru choosing the source field and where to place the data.

As to the question

Create a query based on Address with a where clause in the ADDID that
includes the specific ID you want it greater than. Assuming there is a
textbox in your form that has the cut-off ID value (i'll call it TextID) and
the form is called frm_LOG then the where clause in the query will be
=[forms].[frm_LOG].[TextID]


Base your combobox on the query you just created (to populate the combobox).

Hope that helps.

"Kevbro7189" wrote:

I have 2 tables LOG and ADDRESS. In LOG I have a lookup field (ADD LU)
related to ADDRESS. The lookup contains the ID for address. How do I get
ADD LU to automatically populate with the ID value available?
I have used the Default property in the table to select a specific ID value
before but I can’t seem to get the equation right for the ID.

 




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 06:44 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.