Avatar of SteveL13
SteveL13Flag for United States of America

asked on 

#Type! on datasheet form

I have this as a control source for a field on a datasheet form:

=[txtAuthor] & " - " & [txtDateRequested]

But I'm seeing #Type! in the field before  the record is a new record.  How can I hide it?
Microsoft Access

Avatar of undefined
Last Comment
Jeffrey Coachman
Avatar of PatHartman
PatHartman
Flag of United States of America image

Check the name of the control.  It must be DIFFERENT from the name of ANY bound field.  Sometimes people drag a field from the list so it starts out bound.  Access usually gives bound controls the same name as the field to which they are bound.  If you later change the control to be unbound, you MUST remember to change the control name.
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of PatHartman
PatHartman
Flag of United States of America image

Steve,
You may have elected to take Jeffery's suggestion to  move the concatenation to a query but I believe I did identify the problem which was that the name of the control caused a conflict.
Avatar of SteveL13
SteveL13
Flag of United States of America image

ASKER

Pat, I would agree with you but I had checked the names of the controls and they were correct.  ????
Avatar of PatHartman
PatHartman
Flag of United States of America image

I see that you are using "txt" as the prefix so I'm going to assume that you are referencing control names rather than field names.  Try using field names.  You can get sometimes away with using control names as long as the controls are in the same section as the reference.   The point is that what you are doing is valid but there is a syntax error somewhere and without seeing the database, I took a shot at it being a name conflict since that is the most common error.  I normally concatenate and calculate in the query myself so I do what Jeffery suggested but what you did should work once the "syntax" error is corrected.

As long as you are happy with the solution, that's fine but for purposes of understanding, I don't want you to be afraid to ever do this again since there is no technical problem with your original solution.  It is "syntax".
Avatar of SteveL13
SteveL13
Flag of United States of America image

ASKER

Pat,

I really thank you for your insight.  It is always very worthwhile.
Yes, review what Pat suggested.
90% of the time, ...it is a naming issue.

I have no problems with a points split....
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo