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

DLookup (populating text based on other selections on form)



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2010, 10:50 PM posted to microsoft.public.access
instereo911 via AccessMonster.com
external usenet poster
 
Posts: 33
Default DLookup (populating text based on other selections on form)

Hi All,

I have searched a few posts and still having trouble with this easy
(hopefully) fix.

I have a form called "Form_Update_Individual_Goal". On this form are a few
combo boxes (Quarter, Year, VP Name, Director Name, Manager Name, Associates
Name and Goal). Each of these are based on a table called
"Individual_Goals_Input: All Items". On this table is the above combo boxes
plus a field I want to bring down to a text box called "Measure"

So Ideally, what i want to do is the following:
Person Selects on form:
Quarter: Q1
Year: 2010
VP Name: Happy
Director Name: Orange
Manager Name: Alpha
Associates Name: Joe Blow
Goal: Do Something Good

and based on those selections above on measure should populate on a text box
that is read only -"You have to do something good for 20 people in 1 year"


So I have two things going so far:
1) When goal is selected, an event is happening after update:

Private Sub Goal_AfterUpdate()
Me.Measure.Requery
End Sub

2( this may be the problem)) - On the measure text box (the box i want to
populate "You have to do something good for 20 people in 1 year"):
=DLookUp("[Measure]","[Individual_Goals_Input: All Items]","
[Individual_Goals_Input: All Items]!Goal"="Forms!Form_Update_Individual_Goal!
Goal") in the control source

And nothing is happening.

What Am I missing (probably everything)? Hopefully something easy

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/201005/1

 




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 12:15 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.