Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenDatabase(something)/open recordset and Data1.DatabaseName 1

Status
Not open for further replies.

lesina

Programmer
Apr 10, 2001
76
ES
Hi guys,

i have this question i would like to know.Maybe it's a stupid question, but still, can anyone help me on this?
When should i open a database like:

(
dim dbclients as databasename
dim rsclients as recordset
)

set dbclients =open databasename(App.path &"something.mdb")
set rsclients=open recordset("one_recordset")



and when should i use a data control and do something like:

data1.databasename =App.path & "something.mdb"
data1.recordset="select * from clients "

....
what's the difference?

thanks in advance,

===================
* Marta Oliveira *
===================
marta100@aeiou.pt
-------------------
CPC_TA- Braga
-------------------
Portugal
===================
 
Without using Data control you should use the First way. The first onr is faster than Data Control. So when you handle large database the first one is much more preferable.

Thank You
 
Hi polash,

thanks a lot for your answer and sharing your knowledge with me.

my start to you, you've been helpfull :)


Good work, see you next time

===================
* Marta Oliveira *
===================
marta100@aeiou.pt
-------------------
CPC_TA- Braga
-------------------
Portugal
===================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top