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  

#Name?



 
 
Thread Tools Display Modes
  #1  
Old September 11th, 2008, 12:14 AM posted to microsoft.public.access.forms
margaret
external usenet poster
 
Posts: 177
Default #Name?

I have a qryCash and a frmCash. I would like the default for the control
"cashdate" to use information from a table ... tblControlfile (Be aware that
this table is a single line entry that just holds information that changes on
a day to day basis). When I put the default as
[table]![tblcontrolfile]![fairdate], I'm getting #Name? ... I've tried even
running a query to pull the information from the table and still same
message. How can I get the default for the control "cashdate" to be the
"fairdate" information in my table?
  #2  
Old September 11th, 2008, 12:35 AM posted to microsoft.public.access.forms
Beetle
external usenet poster
 
Posts: 1,254
Default #Name?

=DLookup("fairdate", "tblcontrolfile")
--
_________

Sean Bailey


"margaret" wrote:

I have a qryCash and a frmCash. I would like the default for the control
"cashdate" to use information from a table ... tblControlfile (Be aware that
this table is a single line entry that just holds information that changes on
a day to day basis). When I put the default as
[table]![tblcontrolfile]![fairdate], I'm getting #Name? ... I've tried even
running a query to pull the information from the table and still same
message. How can I get the default for the control "cashdate" to be the
"fairdate" information in my table?

  #3  
Old September 11th, 2008, 09:50 PM posted to microsoft.public.access.forms
Dennis
external usenet poster
 
Posts: 1,222
Default #Name?

You might also need to use this syntax:

[table]![tblcontrolfile].[fairdate]

"margaret" wrote:

I have a qryCash and a frmCash. I would like the default for the control
"cashdate" to use information from a table ... tblControlfile (Be aware that
this table is a single line entry that just holds information that changes on
a day to day basis). When I put the default as
[table]![tblcontrolfile]![fairdate], I'm getting #Name? ... I've tried even
running a query to pull the information from the table and still same
message. How can I get the default for the control "cashdate" to be the
"fairdate" information in my table?

 




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:39 AM.


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