BigJimSlade
Registered User.
- Local time
- Today, 10:12
- Joined
- Oct 11, 2000
- Messages
- 173
Hi, Big Jim here:
Can anyone tell me the difference between these two pieces of code?
***********************
Dim rst as recordset
Set rst = currentdb.OpenRecordset("SELECT * FROM MyTable")
Label.Caption = rst!Field
***********************
Dim rst as Recordset
Dim strField as String
Set rst = currentdb.OpenRecordset("SELECT * FROM MyTable")
strField = rst!Field
Label.Caption = strField
***********************
I notice many programmers do the latter. Is there any reason as to why, and what would this be called? Does it effect performance?
Thanks in advance!
Big Jim
Can anyone tell me the difference between these two pieces of code?
***********************
Dim rst as recordset
Set rst = currentdb.OpenRecordset("SELECT * FROM MyTable")
Label.Caption = rst!Field
***********************
Dim rst as Recordset
Dim strField as String
Set rst = currentdb.OpenRecordset("SELECT * FROM MyTable")
strField = rst!Field
Label.Caption = strField
***********************
I notice many programmers do the latter. Is there any reason as to why, and what would this be called? Does it effect performance?
Thanks in advance!
Big Jim