Rabu, 02 Agustus 2017

RE: [MS_AccessPros] Determine if form view is datasheet or not

 

Perfect John.  Thanksk.

 

   If Me.CurrentView = 2 Then

      Me.AllowEdits = False

      Me.AllowAdditions = False

      Me.AllowDeletions = False

   Else

      Me.AllowEdits = True

      Me.AllowAdditions = True

      Me.AllowDeletions = trye

   End If

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Wednesday, August 2, 2017 9:26 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Determine if form view is datasheet or not

 




Liz-

 

Each form has a CurrentView property.  I *think* the open event gets fired again if you switch views, so you might be able to detect it then.

John Viescas, author

Effective SQL

SQL Queries for Mere Mortals

Microsoft Office Access 2010 Inside Out

Microsoft Office Access 2007 Inside Out

Building Access Applications


On Aug 2, 2017, at 11:00, Liz Ravenwood liz_ravenwood@beaerospace.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Pros, is there any code that I could use to determine if someone has gone in to a datasheet view?

 

I just had a data table get completely wiped out and I'm speculating as to the cause.  I wonder if they went in to datasheet view, selected all to copy to a spreadsheet, and hit the ctrl-x instead of the ctrl-c.



This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.






This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

__._,_.___

Posted by: Liz Ravenwood <Liz_Ravenwood@beaerospace.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar