473,396 Members | 2,033 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,396 software developers and data experts.

how do I go to a record in a continuous form when clicking on a label

Hi Gurus

I have a very simple question this time.

I have a continuous form with a textbox (ID number) and a label. The label
has a on_click event: msgbox me.id.value

If I click on the label then I get a message : 1

Now, Imagine I have the cursor on ID = 1 (the first record), then I scroll
down to record 35 (ID =35) and click on the label next to the textbox that
has 35 in it. It may surprise some of you, but I still get a message with
1, not 35.

From a user point of view, this does not make sense.

From developer's point of view it makes some sense, as the label can not be
in focus and therefore, the record selected remains 1 and not 35.

Does anyone know a simple solution to make the form act more intuitive (i.e.
showing a message box with 35, not 1)?

Thank you kindly for any assistance.

- Nicolaas

Nov 13 '05 #1
5 3099
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:Zf********************@news.xtra.co.nz...
Hi Gurus

I have a very simple question this time.

I have a continuous form with a textbox (ID number) and a label. The label has a on_click event: msgbox me.id.value

If I click on the label then I get a message : 1

Now, Imagine I have the cursor on ID = 1 (the first record), then I scroll
down to record 35 (ID =35) and click on the label next to the textbox that
has 35 in it. It may surprise some of you, but I still get a message with
1, not 35.

From a user point of view, this does not make sense.

From developer's point of view it makes some sense, as the label can not be in focus and therefore, the record selected remains 1 and not 35.

Does anyone know a simple solution to make the form act more intuitive (i.e. showing a message box with 35, not 1)?

Thank you kindly for any assistance.

- Nicolaas


How about putting a transparent command button on top of the label?
Nov 13 '05 #2

"Brian" <bc**@IHATESPAMclara.co.uk> wrote in message
news:10***************@eunomia.uk.clara.net...
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:Zf********************@news.xtra.co.nz...
Hi Gurus

I have a very simple question this time.

I have a continuous form with a textbox (ID number) and a label. The

label
has a on_click event: msgbox me.id.value

If I click on the label then I get a message : 1

Now, Imagine I have the cursor on ID = 1 (the first record), then I scroll down to record 35 (ID =35) and click on the label next to the textbox that has 35 in it. It may surprise some of you, but I still get a message with 1, not 35.

From a user point of view, this does not make sense.

From developer's point of view it makes some sense, as the label can not

be
in focus and therefore, the record selected remains 1 and not 35.

Does anyone know a simple solution to make the form act more intuitive

(i.e.
showing a message box with 35, not 1)?

Thank you kindly for any assistance.

- Nicolaas


How about putting a transparent command button on top of the label?


Hi Brian

That is a great idea. Do you reckon that is the only way to do that?

Thanks

Nicolaas
Nov 13 '05 #3
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:0F********************@news.xtra.co.nz...

"Brian" <bc**@IHATESPAMclara.co.uk> wrote in message
news:10***************@eunomia.uk.clara.net...
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:Zf********************@news.xtra.co.nz...
Hi Gurus

I have a very simple question this time.

I have a continuous form with a textbox (ID number) and a label. The

label
has a on_click event: msgbox me.id.value

If I click on the label then I get a message : 1

Now, Imagine I have the cursor on ID = 1 (the first record), then I scroll down to record 35 (ID =35) and click on the label next to the textbox that has 35 in it. It may surprise some of you, but I still get a message with 1, not 35.

From a user point of view, this does not make sense.

From developer's point of view it makes some sense, as the label can
not be
in focus and therefore, the record selected remains 1 and not 35.

Does anyone know a simple solution to make the form act more intuitive

(i.e.
showing a message box with 35, not 1)?

Thank you kindly for any assistance.

- Nicolaas


How about putting a transparent command button on top of the label?


Hi Brian

That is a great idea. Do you reckon that is the only way to do that?

Thanks

Nicolaas


Well, you could completely abandon the label and just use a command button,
if you can achieve the appearance you want with the formatting properties of
a command button. I'm sure your assessment of the problem when using a
label is correct, so you need to use a control e.g. a command button that
can receive the focus.
Nov 13 '05 #4

"Brian" <bc**@IHATESPAMclara.co.uk> wrote in message
news:10***************@nnrp-t71-02.news.clara.net...
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:0F********************@news.xtra.co.nz...

"Brian" <bc**@IHATESPAMclara.co.uk> wrote in message
news:10***************@eunomia.uk.clara.net...
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:Zf********************@news.xtra.co.nz...
> Hi Gurus
>
> I have a very simple question this time.
>
> I have a continuous form with a textbox (ID number) and a label. The label
> has a on_click event: msgbox me.id.value
>
> If I click on the label then I get a message : 1
>
> Now, Imagine I have the cursor on ID = 1 (the first record), then I scroll
> down to record 35 (ID =35) and click on the label next to the textbox
that
> has 35 in it. It may surprise some of you, but I still get a
message
with
> 1, not 35.
>
> From a user point of view, this does not make sense.
>
> From developer's point of view it makes some sense, as the label can

not be
> in focus and therefore, the record selected remains 1 and not 35.
>
> Does anyone know a simple solution to make the form act more

intuitive (i.e.
> showing a message box with 35, not 1)?
>
> Thank you kindly for any assistance.
>
> - Nicolaas
>
>
>

How about putting a transparent command button on top of the label?


Hi Brian

That is a great idea. Do you reckon that is the only way to do that?

Thanks

Nicolaas


Well, you could completely abandon the label and just use a command

button, if you can achieve the appearance you want with the formatting properties of a command button. I'm sure your assessment of the problem when using a
label is correct, so you need to use a control e.g. a command button that
can receive the focus.


The problem is that I want to combine the "receive focus" property of the
button with some of the other joys of the label. So I would really prefer a
label who can receive the focus - some way or another...

Cheers

- Nicolaas
Nov 13 '05 #5
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:1%****************@news.xtra.co.nz...

"Brian" <bc**@IHATESPAMclara.co.uk> wrote in message
news:10***************@nnrp-t71-02.news.clara.net...
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:0F********************@news.xtra.co.nz...

"Brian" <bc**@IHATESPAMclara.co.uk> wrote in message
news:10***************@eunomia.uk.clara.net...
> "WindAndWaves" <ac****@ngaru.com> wrote in message
> news:Zf********************@news.xtra.co.nz...
> > Hi Gurus
> >
> > I have a very simple question this time.
> >
> > I have a continuous form with a textbox (ID number) and a label. The > label
> > has a on_click event: msgbox me.id.value
> >
> > If I click on the label then I get a message : 1
> >
> > Now, Imagine I have the cursor on ID = 1 (the first record), then I scroll
> > down to record 35 (ID =35) and click on the label next to the textbox that
> > has 35 in it. It may surprise some of you, but I still get a message with
> > 1, not 35.
> >
> > From a user point of view, this does not make sense.
> >
> > From developer's point of view it makes some sense, as the label
can
not
> be
> > in focus and therefore, the record selected remains 1 and not 35.
> >
> > Does anyone know a simple solution to make the form act more intuitive > (i.e.
> > showing a message box with 35, not 1)?
> >
> > Thank you kindly for any assistance.
> >
> > - Nicolaas
> >
> >
> >
>
> How about putting a transparent command button on top of the label?
>
>

Hi Brian

That is a great idea. Do you reckon that is the only way to do that?

Thanks

Nicolaas
Well, you could completely abandon the label and just use a command

button,
if you can achieve the appearance you want with the formatting

properties of
a command button. I'm sure your assessment of the problem when using a
label is correct, so you need to use a control e.g. a command button
that can receive the focus.


The problem is that I want to combine the "receive focus" property of the
button with some of the other joys of the label. So I would really prefer

a label who can receive the focus - some way or another...

Cheers

- Nicolaas


What joys of a label?! There isn't much that a label can do! Anyhow, if a
label can't receive the focus, then it can't receive the focus - there isn't
a lot anyone can do about that!
Nov 13 '05 #6

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

Similar topics

5
by: HJ | last post by:
Hi all, Consider an Access 2002 run-time application on Windows XP. The controls on a form are locked until the user clicks an Edit button. The form is based on a query and all controls are...
2
by: aaj | last post by:
Hi all I have a small but rather annoying problem with continuos forms, and am wondering if anyone can suggest a method of getting over it. The front end is Access 2002 with the BE being SQL...
3
by: Mark | last post by:
Hi there, I have a subform, set as a continuous form. When a user selects a particular record in that subform, how can I make that particular record stand out (color or font change, size, etc) from...
2
by: John M | last post by:
Hi, I have a continuous form which shows a record on each line. Further details are available by clicking on a box which runs code to open a further form to give more details of the record. It...
6
by: John | last post by:
Hi I need to block user from moving away from a record using any of First/Last/Prev/Next/New Record or any other way IF the record has not been saved, and displaying a message to the effect...
1
by: Catriona | last post by:
I am developing an Access application where users insert bill records for an electricity account by clicking on a new button. The required workflow is 1) New button clicked 2) New record appears...
3
by: ApexData | last post by:
I am using a continuous form for display purposes. Above this form, a single record is displayed so that when the user presses my NewButton they can enter a NewRecord which gets added to the...
16
by: google | last post by:
In a continuous form the following code is under a button in the form header. In Access 2003 and earlier, this goes to a new record, then adds relevant data to that new record. DoCmd.GoToRecord...
3
by: Hirsute | last post by:
Simple question for MS Access 2003 (using VBA)... I have "continuous" form (e.g. showing many records on a single form window). When I simply click (primary click) on one of those records it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
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,...

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.