Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3251 after 2003 upgrade 1

Status
Not open for further replies.

assets

Technical User
Oct 23, 2002
574
AU
The database is on a network server. There is no frontend on local machines. Everthing is running from the server. Things were OK with 2002. The form concerned has has the following code to lock it:

Sub sLockControls(frm As Form, YesOrNo As Boolean)
Dim ctr As Control
On Error GoTo ErrHandler
For Each ctr In frm.Section(0).Controls
Select Case ctr.ControlType
Case acTextBox, acListBox, acComboBox, acCheckBox
ctr.Locked = YesOrNo
'ctr.BackColor = BackgroundColor
ctr.FontItalic = ctr.Locked
Case Else
'nothing yet
End Select
ResumePoint:
Next
Exit Sub
ErrHandler:
Resume ResumePoint
End Sub

when you edit the form on a blank field it OK but when you change a field the error occurs.

It is also using the Microsoft Audit code from there site to record changes.

I have seen the error on one other form that did not have ctr lock.

Any suggestion would be appreciated.



Never give up never give in.

There are no short cuts to anything worth doing :)
 
I believe your ResumePoint should be *after* the Next statement rather than before.

HTH RuralGuy (RG for short) acXP winXP Pro
Please respond to this forum so all may benefit
 
Tthank you for you advise it has solved the problem.

Never give up never give in.

There are no short cuts to anything worth doing :)
 
Glad I could help.

HTH RuralGuy (RG for short) acXP winXP Pro
Please respond to this forum so all may benefit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top