PC Review


Reply
Thread Tools Rate Thread

Bound a DLookUp Value

 
 
Bonaco
Guest
Posts: n/a
 
      5th Nov 2008
Hi There,

Sorry about my basic question. I did a quick search and I couldn't
realize how to solve my issue.

I'm using Access 97 and my experience on it isn't big!

I have the Dlookup working fine and geting the value that I need.

But I can not BOUND the Dlookup result.

What is the correct way to do that?

I have a Text Box with the Control Source set to my field [Last Follow
up Date] named as Last Follow Up Date

Name: Last Follow Up Date
Control Source: [Last Follow up Date]

My Dlookup that is getting the value that I want as Control Source of
a Unbound Text Box named as UnboundDLookUp

=DLookUp("[FollowupDate]![TimeStamp]","FollowupDate","[FollowupDate]!
[PlanitCode] =" & [PlanIT Code])

Name: UnboundDLookUp
Control Source: =DLookUp("[FollowupDate]!
[TimeStamp]","FollowupDate","[FollowupDate]![PlanitCode] =" & [PlanIT
Code])

So basicaly, I would like to "save" the Dlookup result in the Last
Follow Up Date field.

Thanks in advance for your assistence.

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      5th Nov 2008
The core concept is that you don't bind the result of a calculation to a
field, unless there is some valid reason why the result could be different
from the calculation.

For an explanation, see:
Calculated fields
at:
http://allenbrowne.com/casu-14.html

The article also explains how to assign a result if you really do need to do
that.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bonaco" <(E-Mail Removed)> wrote in message
news:add67aae-392e-4d18-bb79-(E-Mail Removed)...
>
> Sorry about my basic question. I did a quick search and I couldn't
> realize how to solve my issue.
>
> I'm using Access 97 and my experience on it isn't big!
>
> I have the Dlookup working fine and geting the value that I need.
>
> But I can not BOUND the Dlookup result.
>
> What is the correct way to do that?
>
> I have a Text Box with the Control Source set to my field [Last Follow
> up Date] named as Last Follow Up Date
>
> Name: Last Follow Up Date
> Control Source: [Last Follow up Date]
>
> My Dlookup that is getting the value that I want as Control Source of
> a Unbound Text Box named as UnboundDLookUp
>
> =DLookUp("[FollowupDate]![TimeStamp]","FollowupDate","[FollowupDate]!
> [PlanitCode] =" & [PlanIT Code])
>
> Name: UnboundDLookUp
> Control Source: =DLookUp("[FollowupDate]!
> [TimeStamp]","FollowupDate","[FollowupDate]![PlanitCode] =" & [PlanIT
> Code])
>
> So basicaly, I would like to "save" the Dlookup result in the Last
> Follow Up Date field.
>
> Thanks in advance for your assistence.


 
Reply With Quote
 
Bonaco
Guest
Posts: n/a
 
      5th Nov 2008
On Nov 5, 11:44*am, "Allen Browne" <AllenBro...@SeeSig.Invalid> wrote:
> The core concept is that you don't bind the result of a calculation to a
> field, unless there is some valid reason why the result could be different
> from the calculation.
>
> For an explanation, see:
> * * Calculated fields
> at:
> * *http://allenbrowne.com/casu-14.html
>
> The article also explains how to assign a result if you really do need todo
> that.
>
> --
> Allen Browne - Microsoft MVP. *Perth, Western Australia
> Tips for Access users -http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Bonaco" <bonacor...@gmail.com> wrote in message
>
> news:add67aae-392e-4d18-bb79-(E-Mail Removed)...
>
>
>
>
>
> > Sorry about my basic question. I did a quick search and I couldn't
> > realize how to solve my issue.

>
> > I'm using Access 97 and my experience on it isn't big!

>
> > I have the Dlookup working fine and geting the value that I need.

>
> > But I can not BOUND the Dlookup result.

>
> > What is the correct way to do that?

>
> > I have a Text Box with the Control Source set to my field [Last Follow
> > up Date] named as Last Follow Up Date

>
> > Name: Last Follow Up Date
> > Control Source: [Last Follow up Date]

>
> > My Dlookup that is getting the value that I want as Control Source of
> > a Unbound Text Box named as UnboundDLookUp

>
> > =DLookUp("[FollowupDate]![TimeStamp]","FollowupDate","[FollowupDate]!
> > [PlanitCode] =" & [PlanIT Code])

>
> > Name: UnboundDLookUp
> > Control Source: =DLookUp("[FollowupDate]!
> > [TimeStamp]","FollowupDate","[FollowupDate]![PlanitCode] =" & [PlanIT
> > Code])

>
> > So basicaly, I would like to "save" the Dlookup result in the Last
> > Follow Up Date field.

>
> > Thanks in advance for your assistence.- Hide quoted text -

>
> - Show quoted text -


Thank you very much for the explanation Allen... I had like the first
explanation...

How do you get Access to store the result of a calculation?

For example, if you have fields named Quantity and UnitPrice, how do
you get Access to write Quantity * UnitPrice to another field called
Amount?

The best answer is, "Don't!"

I will keep the Dlookup listed on my reports and tables and I need
it to be viewed.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate values in 3 bound txt boxes based on value from a bound c broncojim Microsoft Access Form Coding 6 20th Feb 2009 09:11 PM
Re: Dlookup function - copying the dlookup info into a field.... Douglas J. Steele Microsoft Access Forms 0 6th Dec 2006 02:05 PM
Adding rows to a bound table that is bound to DataGridView(DataSou =?Utf-8?B?S2V2aW4gQnVydG9u?= Microsoft Dot NET Framework Forms 2 22nd Jun 2006 06:05 AM
Oracle Parameter bound problem: ORA-01008: not all variables bound =?Utf-8?B?Zmlq?= Microsoft ADO .NET 1 24th Dec 2004 08:31 AM
Re: PropertyManager.EndCurrentEdit() marks the bound dataview row as Modified even if the data in the bound control is unchanged Miha Markic [MVP C#] Microsoft ADO .NET 0 5th Jun 2004 11:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 AM.