473,513 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GoToControl Action Error 2108

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
1 3876
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
548
by: DD | last post by:
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...
4
2337
by: MLH | last post by:
HelpBox is a textbox control on a form. When line #254 is processed, the focus is on HelpBox. However, when line #254 executes, the error saying 'can't move focus to ButtonG' is returned. I've...
7
2915
by: | last post by:
Hi all, I have a simple .aspx page running on net 2.0 that is trying to do a http post to a remote server. Here is the code Private Function ProcessRequests(ByVal strbody As String) As String...
4
7699
by: Elaine | last post by:
Hi I have created a form which contains a subform. To cut a long story short, I have created a macro that moves the focus to the subform (GoToControl) and sets a value (SetValue) in the field...
0
1752
by: adolph | last post by:
Hi, I have a beforeupdate evbent that tests to see that a customer chosen before the user can enter an amount. If the customer has not been chosen yet, then I would like to popup a message...
4
6963
by: ingibjark | last post by:
Hello all I’m securing a web service using WSE 2.0. One of the potential client’s of the web service is a Java client using Sun JWSDP 1.5. The problem is that the java client gets the...
1
8389
by: SDL | last post by:
The code below says error 2108 must save field before setfocus? All I want to do is check out the input field and if in error set the cursor back on it after the MsgBox displays. In this case I...
3
16336
by: Joseph Lu | last post by:
Hi,all I have code like the following lines, but when I compile this program I got a: error C2563 : 'ios' : is not a class or namespace name! //--Code starts here #include <iostream> #include...
1
2192
by: dlreich | last post by:
While viewing a form, I use Find (Ctrl-F) to find a new record. In On Current for the form, I use GoToControl to adjust the display of one of the fields in the new record. Is there any way I can...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.