A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

No current record?



 
 
Thread Tools Display Modes
  #11  
Old May 6th, 2008, 07:13 PM posted to microsoft.public.access.forms
Mark A. Sam[_3_]
external usenet poster
 
Posts: 468
Default No current record?

This problem cleared when I opened it in A2003 on another machine, and made
an mde file. I was using A2007 on my machine, becuase Office 2007 isn't
Office 2002 friendly and blew it away. I had to changed libraries from
Outlook 12.0 to Outlook 11.0. I don't know if this was associated with the
issue, but mentioning it.

This is a problem were there was no err number (3021), so I couldn't trap
it.


"Mark A. Sam" wrote in message
...
Hello,

In a textbox of a continuous subform I have this code in the BeforeUpdate
event:

Private Sub EmailAdddress_BeforeUpdate(Cancel As Integer)
On Error GoTo errSec

If GetUserLevel() "admin" Then
Cancel = True
MsgBox "Only an Administrator can change email addresses from this form!"
Me.Undo
End If

exitSec:
Exit Sub

errSec:
MsgBox "Error " & Err & ": " & Err.Description
Resume Next

End Sub


When this runs and the user is not "admin" I get a message box which says,

"No current record." w/o quotes and no err number. The problem is the
undo method. I have tried, DoCmd.RunCommand acCmdUndo and
[EmailAdddress].Undo with the same result. This is an A2002 mdb database,
opened with A2007.

Thanks for any help and God Bless,

Mark A. Sam










 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.