GrandMaMa
Wed Mar 15 19:31:19 CST 2006
Dave; thanks for the quick come back, but I am still having a problem.
Added: Const adLockReadOnly = 1
Changed to: rsUnivs.Open UnivSQL, Cnnct, adLockReadOnly, 3, 3
Now get error message
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
Thanks Again
Granny
"Dave Patrick" wrote:
> Const adOpenForwardOnly = 0
> Const adLockReadOnly = 1
>
> rsUnivs.Open UnivSQL, Cnnct, adOpenForwardOnly, adLockReadOnly
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
>
http://www.microsoft.com/protect
>
> "GrandMaMa" wrote:
> | Someone got into my student file and destroyed one of the feields in it.
> |
> | I need to change the SELECT SQL statement but just cannot find the correct
> | syntax.
> |
> | This is what I have now:
> |
> | UnivSQL="SELECT * FROM UNVRSTY WHERE NAME = '" & PgName & "' and PASSWRD =
> | '" & PgPass & "', acReadOnly"
> | rsUnivs.Open UnivSQL, Cnnct, 3, 3
> |
> | I was informed to use ReadOnly, but I cannot find where to insert the
> | property.
> |
> | Thanks in Advance
> |
> | Granny
> |
> |
>
>
>