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 / Modules / DAO / VBA / March 2005

Tip: Looking for answers? Try searching our database.

unbound control Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 09 Mar 2005 05:45 GMT
All please I need your assistant..
this problem is driving me crazy..
I want to know how to set a control value to zero in case its source in some
other sub forms is not avilable. I don't want the control to show me #Error I
want to have its value as 0.
Thanks in advacne.
Paul.
Alex Dybenko - 09 Mar 2005 05:58 GMT
You can try IsError() function, write in control source:

=IIF(IsError(Forms!MyForm!MyControl),0,Forms!MyForm!MyControl)

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com

> All please I need your assistant..
> this problem is driving me crazy..
[quoted text clipped - 5 lines]
> Thanks in advacne.
> Paul.
Paul - 10 Mar 2005 06:59 GMT
Dear Alex,
thanks for your support...
I tried the function but I was not able to apply it, it was saying error
like coma or something is missing anyway I created another controls in the
form where it can read from the sub form and I applied to my controls the
function to avoid going for subform in all cases my syntax was as follow
=IIF(IsError(OBC1),0,OBC1) but it was not working....
what shall i do to correct this syntax line... do i need to use [] i tried
them but still i was getting coma or missing brackets error.
I aprreciate your help.

> You can try IsError() function, write in control source:
>
[quoted text clipped - 9 lines]
> > Thanks in advacne.
> > Paul.
Paul - 10 Mar 2005 10:05 GMT
Dear Alex..
You are Braliant..
The code from here doesn't work with me but I went to your website, and I
used another Code from there which is nnz function created for controls
Errors to retrive value to 0 that code was very good and I used it with so
many controls where its so flexible...
thank you very much for your website and your assistance.
Paul.

> Dear Alex,
> thanks for your support...
[quoted text clipped - 20 lines]
> > > Thanks in advacne.
> > > Paul.
Alex Dybenko - 10 Mar 2005 17:54 GMT
Thank you Paul, you made me happy!
:-)

Alex

> Dear Alex..
> You are Braliant..
[quoted text clipped - 32 lines]
>> > > Thanks in advacne.
>> > > Paul.
 
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.