Label & continuos forms

  • Thread starter Thread starter alex
  • Start date Start date
A

alex

In a continuos form I want to add a label to print the
relative record .
The problem is that if I click on the label the record is
not 'focused' and therefore the printed record is the
previous selected one in form. Is there a solution?

Thank you in advance
 
alex said:
In a continuos form I want to add a label to print the
relative record .
The problem is that if I click on the label the record is
not 'focused' and therefore the printed record is the
previous selected one in form. Is there a solution?


Normally, people use a button instead of a label so the
record does become current. Even a text box would do what
you want. Do you have some special requirements that force
you to use a label?


Actually, it's pretty common to have the
label/button/textbox in the form's header/footer section.
This is then used to print whatever record is already
current.
 
-----Original Message-----
alex said:
In a continuos form I want to add a label to print the
relative record .
The problem is that if I click on the label the record is
not 'focused' and therefore the printed record is the
previous selected one in form. Is there a solution?


Normally, people use a button instead of a label so the
record does become current. Even a text box would do what
you want. Do you have some special requirements that force
you to use a label?


Actually, it's pretty common to have the
label/button/textbox in the form's header/footer section.
This is then used to print whatever record is already
current.

--
Marsh
MVP [MS Access]
.
Using a label would allow the user to print a record
with one click only (as a web-based application) without
first select the record. Clicking a button or a field
focus the current record. This is not the case for
labels. Is there a way to focus the record of the label
I'm clicking on ?
 
-----Original Message-----
Using a label would allow the user to print a record
with one click only (as a web-based application) without
first select the record. Clicking a button or a field
focus the current record. This is not the case for
labels. Is there a way to focus the record of the label
I'm clicking on ?

No. A label can not receive the focus so the current record
is not going to follow the click.

What is wrong with using a button?

If appearance is of overriding concern, you could even make
the button transparent and place it on top of the label.
 
-----Original Message-----


No. A label can not receive the focus so the current record
is not going to follow the click.

What is wrong with using a button?

If appearance is of overriding concern, you could even make
the button transparent and place it on top of the label.

Yes , I think it's the only solution
Thank you
 
Back
Top