Run Time Error: Update or CancelUpdate

T

Ted James

Eheh umm I deviated from my "proper" naming structure and
named a label "AccountType" which is the name of a record
in the record set. So the line

Forms!frmDataInput!subAccount.Form!AccountType = DLookup
("[AccountType]", "tblAccountTypes", "[AccountID]= '" &
Right(Forms!frmDataInput!subAccount.Form!AccountNumber,
1) & "'")

Caused problems.

Forms!frmDataInput!subAccount.Form!lblAccountType.Caption
= DLookup("[AccountType]", "tblAccountTypes", "[AccountID]
= '" & Right(Forms!frmDataInput!subAccount.Form!
AccountNumber, 1) & "'")

Works since it no longer confuses the program with the
control and the recordset having the AccountType
similarity.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top