PDA

Click to See Complete Forum and Search --> : Access & output parameters


Aug 25th, 2000, 07:29 AM
Using VB6 & Access 2000


Can anyone tell me how I can get the result of the
query below into a variable.

PriCmd.CommandText = "SELECT MAX(Pnum) AS MaxPage FROM PInfo"
PriCmd.Execute

I have tried creating MaxPage as a parameter but it won't
seem to let me specify it as an output parameter

I know if a recordset was being returned I could do:-

set rs = PriCmd.Execute

But what do I do when just a value is being returned.

Thanks in advance

SeanR

Aug 28th, 2000, 04:15 AM
Many thanks for your help, it did the trick

SeanR