microsoft.public.vb.general.discussion, microsoft.public.vb.enterprise 
Author Message
 microsoft.public.vb.general.discussion, microsoft.public.vb.enterprise

Hiya,

I have the following problem in VB
I have a report which prints all my records.
Now I try to print only the record on my current form.
At the moment I use the followin code :

        rptbol1.SelectionFormula = "{tblBol.Bolnumber} = 18"
        rptbol1.Action = 1

18 is here a number of an existing Bolnumber
So this works as long as I put the recordnumber to be printed in the code
Now I'd like to have a method like this:

        Dim bolnr as Integer
        bolnr = Me.Bolnumber
        rptbol1.SelectionFormula = "{tblBol.Bolnumber} = bolnr"
        rptbol1.Action = 1

 => So bolnr is a variable

Does anyone know how I could define this ?

Thanx in advance,

Koen



Mon, 23 Oct 2000 03:00:00 GMT  
 microsoft.public.vb.general.discussion, microsoft.public.vb.enterprise

rptbol1.SelectionFormula = "{tblBol.Bolnumber} = " & bolnr

On 7 May 1998 17:18:20 GMT, "Koen Van Tolhuyzen"

Quote:

>Hiya,

>I have the following problem in VB
>I have a report which prints all my records.
>Now I try to print only the record on my current form.
>At the moment I use the followin code :

>    rptbol1.SelectionFormula = "{tblBol.Bolnumber} = 18"
>            rptbol1.Action = 1

>18 is here a number of an existing Bolnumber
>So this works as long as I put the recordnumber to be printed in the code
>Now I'd like to have a method like this:

>    Dim bolnr as Integer
>    bolnr = Me.Bolnumber
>    rptbol1.SelectionFormula = "{tblBol.Bolnumber} = bolnr"
>            rptbol1.Action = 1

> => So bolnr is a variable

>Does anyone know how I could define this ?

>Thanx in advance,

>Koen




Wed, 25 Oct 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. connecting to online database (posted also on microsoft.public.vb.general.discussion

2. RIP microsoft.public.vb.general.discussion

3. microsoft.public.vb.database;microsoft.public.vb.database.ado;microsoft.public.vb.database.dao

4. ADO/Oracle - passing parms and data types (xposted with no results on microsoft.public.vb.general.discussion and comp.lang.basic.visual.database)

5. ADO/Oracle - passing parms and data types (xposted with no results on microsoft.public.vb.general.discussion)

6. New discussion group wanted - microsoft.public.vb.improvements or vb.wish

7. Sneakpeek explanation and summary for microsoft.public.vb.enterprise

8. microsoft.public.dotnet.vb.general

9. microsoft.public.dotnet.languages.vb missing?

10. microsoft.public.dotnet.languages.vb

11. New group needed: microsoft.public.dotnet.languages.vb.advocacy

12. microsoft.public.vb.controls.internet

 

 
Powered by phpBB® Forum Software