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 / April 2008

Tip: Looking for answers? Try searching our database.

form properties vs. VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Question Boy - 21 Apr 2008 14:36 GMT
I have a form which I set to allow additions (No edits, No Deletes).  The
form only has 1 control - cotinuous form.  On the form I have the control's
x2 click property calling Allen Browne's popup calendar.  My problem is that
although the user cannot manually make changes to the data (a date) entered
in previously, the x2 click event still get trigerred and the popup calendar
can make the modification.  How can I disable the event/popup when it is not
a new entry?

Thank you,

QB
Question Boy - 21 Apr 2008 14:42 GMT
Answer my own question.

By comparing the CurrentRecord to teh  RecordsetClone.RecordCount I can
enable or not the popuo cal.

QB

> I have a form which I set to allow additions (No edits, No Deletes).  The
> form only has 1 control - cotinuous form.  On the form I have the control's
[quoted text clipped - 7 lines]
>
> QB
Klatuu - 21 Apr 2008 14:50 GMT
You can also determine if it is a new record with

  If Me.NewRecord Then
       'It is a new record
   End If

Signature

Dave Hargis, Microsoft Access MVP

> Answer my own question.
>
[quoted text clipped - 14 lines]
> >
> > QB
Question Boy - 21 Apr 2008 15:14 GMT
Thank you Klatuu.  I wasn't aware of that approach.  Simpler is better (in my
mind)!

> You can also determine if it is a new record with
>
[quoted text clipped - 20 lines]
> > >
> > > QB
Klatuu - 21 Apr 2008 15:16 GMT
You won't find many people simpler than I <g>
Signature

Dave Hargis, Microsoft Access MVP

> Thank you Klatuu.  I wasn't aware of that approach.  Simpler is better (in my
> mind)!
[quoted text clipped - 23 lines]
> > > >
> > > > QB
 
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.