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 December 18th, 2008, 08:20 PM posted to microsoft.public.access.forms
JB
external usenet poster
 
Posts: 103
Default #Name?

Hello.
I imported tables and forms from another database.
All works ok except for one thing.
There is a date control in a subform whose default value is set to Date()
which should default to 'today', but show's the dreaded #NAME?

I have compared the control on the other original form, and every other
control property in the main form and the subform, I've compared the queries
that are the sources and everything in VB but they are identical and so are
the tables so I'm at a total loss.
Please can anyone tell me what this could be.
Thank you
Jen



  #2  
Old December 18th, 2008, 08:56 PM posted to microsoft.public.access.forms
M Skabialka
external usenet poster
 
Posts: 570
Default #Name?

What is the name of the control?

"JB" somehow@somewhere wrote in message
...
Hello.
I imported tables and forms from another database.
All works ok except for one thing.
There is a date control in a subform whose default value is set to Date()
which should default to 'today', but show's the dreaded #NAME?

I have compared the control on the other original form, and every other
control property in the main form and the subform, I've compared the
queries that are the sources and everything in VB but they are identical
and so are the tables so I'm at a total loss.
Please can anyone tell me what this could be.
Thank you
Jen





  #3  
Old December 18th, 2008, 09:00 PM posted to microsoft.public.access.forms
JB
external usenet poster
 
Posts: 103
Default #Name?

Date

"M Skabialka" wrote in message
...
What is the name of the control?

"JB" somehow@somewhere wrote in message
...
Hello.
I imported tables and forms from another database.
All works ok except for one thing.
There is a date control in a subform whose default value is set to Date()
which should default to 'today', but show's the dreaded #NAME?

I have compared the control on the other original form, and every other
control property in the main form and the subform, I've compared the
queries that are the sources and everything in VB but they are identical
and so are the tables so I'm at a total loss.
Please can anyone tell me what this could be.
Thank you
Jen





  #4  
Old December 18th, 2008, 09:06 PM posted to microsoft.public.access.forms
JB
external usenet poster
 
Posts: 103
Default #Name?

WEIRD!! I've just opened the database on another computer, and no error on
the date control!!!
am I going mad?
Jen

"JB" somehow@somewhere wrote in message
...
Date

"M Skabialka" wrote in message
...
What is the name of the control?

"JB" somehow@somewhere wrote in message
...
Hello.
I imported tables and forms from another database.
All works ok except for one thing.
There is a date control in a subform whose default value is set to
Date() which should default to 'today', but show's the dreaded #NAME?

I have compared the control on the other original form, and every other
control property in the main form and the subform, I've compared the
queries that are the sources and everything in VB but they are identical
and so are the tables so I'm at a total loss.
Please can anyone tell me what this could be.
Thank you
Jen





  #5  
Old December 18th, 2008, 09:43 PM posted to microsoft.public.access.forms
M Skabialka
external usenet poster
 
Posts: 570
Default #Name?

I'm not sure why it is working elsewhere - you should NEVER use a reserved
word as the name of a control. Date is a reserved word. Try renaming it to
StartDate or whatever is suitable and see if that works.
Mich

"JB" somehow@somewhere wrote in message
...
WEIRD!! I've just opened the database on another computer, and no error on
the date control!!!
am I going mad?
Jen

"JB" somehow@somewhere wrote in message
...
Date

"M Skabialka" wrote in message
...
What is the name of the control?

"JB" somehow@somewhere wrote in message
...
Hello.
I imported tables and forms from another database.
All works ok except for one thing.
There is a date control in a subform whose default value is set to
Date() which should default to 'today', but show's the dreaded #NAME?

I have compared the control on the other original form, and every other
control property in the main form and the subform, I've compared the
queries that are the sources and everything in VB but they are
identical and so are the tables so I'm at a total loss.
Please can anyone tell me what this could be.
Thank you
Jen







  #6  
Old December 18th, 2008, 10:13 PM posted to microsoft.public.access.forms
JB
external usenet poster
 
Posts: 103
Default #Name?

Ok will do Mich, thanks for the tip
Jen

"M Skabialka" wrote in message
...
I'm not sure why it is working elsewhere - you should NEVER use a reserved
word as the name of a control. Date is a reserved word. Try renaming it
to StartDate or whatever is suitable and see if that works.
Mich

"JB" somehow@somewhere wrote in message
...
WEIRD!! I've just opened the database on another computer, and no error
on the date control!!!
am I going mad?
Jen

"JB" somehow@somewhere wrote in message
...
Date

"M Skabialka" wrote in message
...
What is the name of the control?

"JB" somehow@somewhere wrote in message
...
Hello.
I imported tables and forms from another database.
All works ok except for one thing.
There is a date control in a subform whose default value is set to
Date() which should default to 'today', but show's the dreaded #NAME?

I have compared the control on the other original form, and every
other control property in the main form and the subform, I've compared
the queries that are the sources and everything in VB but they are
identical and so are the tables so I'm at a total loss.
Please can anyone tell me what this could be.
Thank you
Jen







 




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 07:28 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.