Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Control Source Property for TextBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Public - 21 May 2008 17:14 GMT
Hi,
I have faced this problem a lot and I tried every possible solution with no
clue. I just want to bind a textbox to an expression and everytime I do so, I
realize that instead of showing the result of my expression, the textbox
shows #Name?. I have tried to eliminate any space and I even tried very
simple expression like this:
=DateDiff([m];"12/12/2007";"1/1/2008")
and even this was not sucessful.

Any clues?
Regards
Joshua A. Booker - 21 May 2008 17:23 GMT
Public,

Check Access help for properusage of datediff.

A couple thing i notice about you example are the following:  argument
should be separated by commas, datediff takes a string as the format first
argument so it should be surrounded by quotes and dates should be surrounded
by pound signs like this:

=DateDiff("m", #12/12/2007#, #1/1/2008#)

HTH,
Josh

> Hi,
> I have faced this problem a lot and I tried every possible solution with
[quoted text clipped - 9 lines]
> Any clues?
> Regards
Douglas J. Steele - 21 May 2008 17:36 GMT
You're correct about the quotes around m and the # delimiters for the dates,
but semi-colons may be legitimate, depending on the user's Regional
Settings.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Public,
>
[quoted text clipped - 23 lines]
>> Any clues?
>> Regards
Public - 21 May 2008 18:52 GMT
Thanks guys for your help.
I got passed from one problem and stuck with another.
The date thing is working correctly now.

However, I want to display a result of expression (query) in a textbox and
the query is not in the record set of the form niether I want to put it there
(since there is another query that the form is using).
I just want to display the result of a query in my textbox and I face the
same problem of #Name?
Any ideas?

Regards

> You're correct about the quotes around m and the # delimiters for the dates,
> but semi-colons may be legitimate, depending on the user's Regional
[quoted text clipped - 27 lines]
> >> Any clues?
> >> Regards
Douglas J. Steele - 21 May 2008 18:57 GMT
Exactly what are you putting as the control source?

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Thanks guys for your help.
> I got passed from one problem and stuck with another.
[quoted text clipped - 7 lines]
> same problem of #Name?
> Any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.