Re: Error in setting recordset object in option explicit
Hi all,
I like to set form's recordset visible throughout the form. I declared the variable and set the recordset object in option explicit but is giving me the error below-
Vb
Compile error:
Invalid outside procedure
Option Explicit
Public rs As New ADODB.Recordset
Public rsclone As New ADODB.Recordset
Error --> Set rst = Me.Recordset
Set rsclone = Me.RecordsetClone
Can someone help me w/ this? Thanks!
Hi all,
I like to set form's recordset visible throughout the form. I declared the variable and set the recordset object in option explicit but is giving me the error below-
Vb
Compile error:
Invalid outside procedure
Option Explicit
Public rs As New ADODB.Recordset
Public rsclone As New ADODB.Recordset
Error --> Set rst = Me.Recordset
Set rsclone = Me.RecordsetClone
Can someone help me w/ this? Thanks!