How to access a field value in Access VB
- From: "Colin Coleman" <nospam@xxxxxxxxxxx>
- Date: Sat, 16 Sep 2006 13:25:23 +0100
MILKMAN ROUNDS PROJECT:
I have a simple project that has a customer table (Detail) and a "Rounds"
(master) table that contains the round details for the round each customer
belongs to....no problem.
I have created a query and then a report that selects all customers that
belong to a selected round number...fine
In the reports detail OnFormat event i want to reference the value of any
field in the underlying dataset for the report. The only way i have managed
to get access to any field value is to place a stupid label on every report
bound to the field i want to question, and make them invisible. then using
the construct MyLocalVar = Me![AnyFieldx] i am able to get to the value.
QUESTION: How do i get to read/use any value in a report WITHOUT loading a
label on the report IN the band im in so i can use it in VB?
Im sure this is easy peasy, but ive been trying for about 2 weeks now and
always give in and slap loads of hidden labels all over the report just so i
can get to the values in VB.
Best regards
Colin
.
- Follow-Ups:
- Re: How to access a field value in Access VB
- From: Marshall Barton
- Re: How to access a field value in Access VB
- From: Albert D. Kallal
- Re: How to access a field value in Access VB
- Prev by Date: Re: Pictures and text in the butonn
- Next by Date: Re: notinlist
- Previous by thread: Outlook email routine - "From" field
- Next by thread: Re: How to access a field value in Access VB
- Index(es):
Relevant Pages
|