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? - Change when appears



 
 
Thread Tools Display Modes
  #1  
Old October 9th, 2007, 04:10 PM posted to microsoft.public.access.forms
Alaska via AccessMonster.com
external usenet poster
 
Posts: 3
Default #Name? - Change when appears

I have a form based on a query. The query output will change depending on
the user selection of associated data used by the query. The form fields
contains all variations. When the query does not supply the data for the
form, #Name? appears in the form field. The form is providing the output as
expected. When #Name? appears, can this be replaced with a default value of
0 or have an alternate message appear other than #Name?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200710/1

  #2  
Old October 9th, 2007, 04:37 PM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default #Name? - Change when appears

Access displays #Name when it cannot recognize the source of the control in
the form (or report).

Are you saying that you are sending DIFFERENT collections for fields to the
same form?

If so, you may have to rename those fields in your query(ies) so they all
match the fieldnames the controls expect to receive.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Alaska via AccessMonster.com" u36428@uwe wrote in message
news:79700b9287257@uwe...
I have a form based on a query. The query output will change depending on
the user selection of associated data used by the query. The form fields
contains all variations. When the query does not supply the data for the
form, #Name? appears in the form field. The form is providing the output
as
expected. When #Name? appears, can this be replaced with a default value
of
0 or have an alternate message appear other than #Name?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200710/1



  #3  
Old October 10th, 2007, 10:31 PM posted to microsoft.public.access.forms
Alaska via AccessMonster.com
external usenet poster
 
Posts: 3
Default #Name? - Change when appears

Thanks for your response. The main query supplying the form is make up of
multiple queries. Each subquery is set up to display all fields, i.e., "*".
This allows me to not be specific in field selection, but the main query will
show all active fields with the field names from the subqueries. The main
query fields will change depending on operator input. This method, works in
my circumstance. I can live with the #Name? displayed in the fields of the
form, however, I wanted to see if Access would allow a default or other
comment (code?). This would be for aesthetic reasons only.

Jeff Boyce wrote:
Access displays #Name when it cannot recognize the source of the control in
the form (or report).

Are you saying that you are sending DIFFERENT collections for fields to the
same form?

If so, you may have to rename those fields in your query(ies) so they all
match the fieldnames the controls expect to receive.

Regards

Jeff Boyce
Microsoft Office/Access MVP

I have a form based on a query. The query output will change depending on
the user selection of associated data used by the query. The form fields

[quoted text clipped - 4 lines]
of
0 or have an alternate message appear other than #Name?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200710/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 03:18 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.