By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,510 Members | 1,437 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,510 IT Pros & Developers. It's quick & easy.

GoToControl Action Error 2108

P: n/a
DD
If user enters chooseCustomer and Me.choosePaymentReceipt is null then
Me.choosePaymentReceipt.SetFocus
the error is on Me.choosePaymentReceipt.SetFocus.
this is an unbound Combobox Row Source type ValueList.
If there is a better way to stop the user proceeding past
chooseCustomer if Me.choosePaymentReceipt is null, i would appreciate
the advice
the error i recieve for the following is
Error 2108
You must save the field before you execute the GoToControl Action,

Private Sub chooseCustomer_BeforeUpdate(Cancel As Integer)
If IsNull(Me.choosePaymentReceipt) Then
MsgBox " You need to choose", vbOKOnly, "Choose"
Me.choosePaymentReceipt.SetFocus
End If
DD
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
DD wrote:
If user enters chooseCustomer and Me.choosePaymentReceipt is null then
Me.choosePaymentReceipt.SetFocus
the error is on Me.choosePaymentReceipt.SetFocus.
this is an unbound Combobox Row Source type ValueList.
If there is a better way to stop the user proceeding past
chooseCustomer if Me.choosePaymentReceipt is null, i would appreciate
the advice
the error i recieve for the following is
Error 2108
You must save the field before you execute the GoToControl Action,

Private Sub chooseCustomer_BeforeUpdate(Cancel As Integer)
If IsNull(Me.choosePaymentReceipt) Then
MsgBox " You need to choose", vbOKOnly, "Choose"
Me.choosePaymentReceipt.SetFocus
End If
DD


What are you updating? The combo box is a value, unbound field. Make
that an AfterUpdate event. Either that or change it to a bound field.

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.