473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 3867
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
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
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
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
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
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
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
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
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
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
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...

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.