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 / General 2 / September 2007

Tip: Looking for answers? Try searching our database.

Clean unbound control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Annette - 12 Sep 2007 16:54 GMT
I have a form that has two unbound controls. In the form's OnCurrent
event I have the following:

If Me.NewRecord Then
   Me!CurrentDepreciation.Value = 0
   Me!BookValue.Value = 0
End If

When I attempt to enter a new record, I receive an error:
Run Time error '2448'
You can't assign a value to this object.

Any ideas on how  to clear these unbound control?
Pieter Wijnen - 12 Sep 2007 18:15 GMT
Easiest is to use the DefaultValue Property

Pieter

>I have a form that has two unbound controls. In the form's OnCurrent
> event I have the following:
[quoted text clipped - 9 lines]
>
> Any ideas on how  to clear these unbound control?
 
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



©2009 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.