473,320 Members | 1,856 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,320 software developers and data experts.

I'm having a GoToControl problem. Error says can't move focus to ButtonG???

MLH
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 tried
putting a DoEvents statement after line #253. The same error was
returned.

252 DoCmd GoToControl "HelpBox"
253 HelpBox.ControlSource = "=" & Chr$(34) & HeadsUp & Chr$(34)
254 DoCmd GoToControl "ButtonG"

Ideas?
Nov 13 '05 #1
4 2326
On Fri, 10 Dec 2004 13:06:53 -0500, MLH <CR**@NorthState.net> wrote:
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 tried
putting a DoEvents statement after line #253. The same error was
returned.

252 DoCmd GoToControl "HelpBox"
253 HelpBox.ControlSource = "=" & Chr$(34) & HeadsUp & Chr$(34)
254 DoCmd GoToControl "ButtonG"

Ideas?


The problem is probably on line 253 which it is not letting you leave,
has HelpBox got any validate events?

However, why not simply replace line 253 by
HelpBox = HeadsUp
or
HelpBox = HeadsUp & ""

- David
Nov 13 '05 #2
On Fri, 10 Dec 2004 13:06:53 -0500, MLH <CR**@NorthState.net> wrote:
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 tried
putting a DoEvents statement after line #253. The same error was
returned.

252 DoCmd GoToControl "HelpBox"
253 HelpBox.ControlSource = "=" & Chr$(34) & HeadsUp & Chr$(34)
254 DoCmd GoToControl "ButtonG"

Ideas?

Hi
The problem is probably with line 253. Is there a validation event on
HelpBox?

Why not replace line 253 by
HelpBox = Headsup
or
HelpBox = Headsup & ""

David

Nov 13 '05 #3
On Fri, 10 Dec 2004 13:06:53 -0500, MLH <CR**@NorthState.net> wrote:
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 tried
putting a DoEvents statement after line #253. The same error was
returned.

252 DoCmd GoToControl "HelpBox"
253 HelpBox.ControlSource = "=" & Chr$(34) & HeadsUp & Chr$(34)
254 DoCmd GoToControl "ButtonG"

Ideas?


The problem is probably on line 253 which it is not letting you leave,
has HelpBox got any validate events?

However, why not simply replace line 253 by
HelpBox = HeadsUp
or
HelpBox = HeadsUp & ""

- David
Nov 13 '05 #4
On Fri, 10 Dec 2004 13:06:53 -0500, MLH <CR**@NorthState.net> wrote:
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 tried
putting a DoEvents statement after line #253. The same error was
returned.

252 DoCmd GoToControl "HelpBox"
253 HelpBox.ControlSource = "=" & Chr$(34) & HeadsUp & Chr$(34)
254 DoCmd GoToControl "ButtonG"

Ideas?

Hi
The problem is probably with line 253. Is there a validation event on
HelpBox?

Why not replace line 253 by
HelpBox = Headsup
or
HelpBox = Headsup & ""

David

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: The Googler | last post by:
Here is the site in question: http://dev.unmeaningflattery.com/ Open it in Firefox (this problem does not occur in IE). Click on one of the image thumbnails to see the larger image appear...
2
by: Peter Wright | last post by:
Hi all. Hopefully this should demonstrate the problem I'm having: http://flooble.net/~pete/focus-problem-demo/ (I'm testing it in Mozilla only, but I'm not sure if it's actually a...
13
by: python | last post by:
hello and thanks for reading this, i have been a dos/windows user using some form of the basic language for 30 years now. i own and run a small programming company and there is one feature that...
3
by: Jason Moore | last post by:
If anything occurs (open a program, move an application window, switch between applications, click the start buttong) while my application is running, a null reference exception is thrown. The...
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...
1
by: patskinny | last post by:
I have a combo box in which a user can select a number of "1" or "0". if the user selects "1" it changes the visible property on other controls that were initial set to "Flase" to "True" . the...
2
by: VI | last post by:
Hi all, I have a problem with the fsw object, and maybe someone experienced with the fsw can help me out. First I want to a share a snippet of the code with you: private void...
3
by: Louis | last post by:
I have a form with multiple input boxes. I want to validate each input box (and force user to correct it) before allowing user to move to another, either using tab key or a mouse click. I try...
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.