Should I use data control or not? 
Author Message
 Should I use data control or not?

Hey Group,
I have read that using the data control on my forms on a major application
may not be wise.  Is this true?  What are the advantages of writing my own
data control and does anyone have any code snippets?



Fri, 10 Mar 2000 03:00:00 GMT  
 Should I use data control or not?

You don't have to write your own Data Control. Play with existing Data
Control to quickly learn Database stuff if you are new. But try using DAO,
RDO etc. anywhere else.

Vishi



Quote:
> Hey Group,
> I have read that using the data control on my forms on a major
application
> may not be wise.  Is this true?  What are the advantages of writing my
own
> data control and does anyone have any code snippets?



Sat, 11 Mar 2000 03:00:00 GMT  
 Should I use data control or not?

Hi there Terrel.

The problem with using the data control is that it all too often puts the
database in states that you really don't want. For example, if a user
starts to edit some bound controls on a form then what they are actually
doing is locking a portion of the table that the datacontrol is connected
to.

You never know at any point in time whether the data control is adding a
record, browsing, or just editing something that already exists, and this
means that you need to write code to find these things out and
effectively fight what the data control is naturally doing.

If you dump the control though and just do all your database access
through straight code, then you are aboslutely sure that nothing else is
messing with your database session. Users can update fields on screen and
you don't have to worry about those changes filtering their way into your
tables until they run your code that explicity does this (like when they
click on an OK button for example).

The other big big advantage is that everything is a whole lot quicker and
slicker if you don't use the data control. The control is just adding
another layer of code onto of something that is already quite heavy and
slow. By doing everything in code you work around this extra baggage and
realise some nice speed gains.

Hope this helps,

Peter.


says...

Quote:
> Hey Group,
> I have read that using the data control on my forms on a major application
> may not be wise.  Is this true?  What are the advantages of writing my own
> data control and does anyone have any code snippets?



Wed, 22 Mar 2000 03:00:00 GMT  
 Should I use data control or not?

ick...
Use DAO for simplicity,
VB-SQL for speed (VB-SQL beat the pants off of RDO 'hands down'),
and ODBC APIs to keep your job.



Fri, 31 Mar 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. I am trying to update a record, i am not using data control

2. SIMPLE HELP NEEDED - Connecting to Databases - not using the Data Control

3. DB not updated using dbcombo and oracle remote data control

4. **********NOT USING THE DATA CONTROL**************

5. Advantages of not using data control

6. Using VB5 to import data to access without using the Data control

7. I am trying to update a record, i am not using data control

8. Referrer data not being passed when using the Navigate method of the WebBrowser Control

9. Field not Updateable error using bound data control

10. What is the advantage of not using Data Control

11. Data not displayed when using DataGrid Control

12. Data-bound Masked Edit makes all data-bound controls not display data

 

 
Powered by phpBB® Forum Software