Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
problem with navigating through database
View previous topic :: View next topic  
Author Message
Mitesh2004
Freshman


Joined: 26 Jan 2004
Posts: 43

PostPosted: Feb 3rd, 2004 09:22 AM    Post subject: problem with navigating through database Reply with quote

Hi,

When i navigathe through the records of a database using the DataControl, i keep getting an error "text property is read only". This happens everytime i try to navigate forwards or backwards.

Could somebody please tell me why this is?
Back to top
View user's profile Send private message Send e-mail
Mitesh2004
Freshman


Joined: 26 Jan 2004
Posts: 43

PostPosted: Feb 4th, 2004 05:59 AM    Post subject: Reply with quote

Should i not be using a DataControl? I will also need to add records later on in my project. Should i be using another method to connect to the database?

I have heard that the DataControl is very limited and not used widely. However, all the books i look in only show the Data Control method.

Could anyone suggest any other ways that i could connect my system to a database?
Back to top
View user's profile Send private message Send e-mail
Andir
Centurion


Joined: 21 Dec 2003
Posts: 184
Location: Chicago Area

PostPosted: Feb 4th, 2004 03:07 PM    Post subject: Reply with quote

The datacontrol will work as long as it's bound to the textboxes your using to view data. Can you post code?
_________________
If you happen to see little people sitting on your desk...don't tell anyone or they might think your crazy too.
Back to top
View user's profile Send private message
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Feb 5th, 2004 02:39 AM    Post subject: Reply with quote

You should switch to ADO instead of DataControl. As Andir said DataControl is good as long as it's bound to textboxes or its good if your project is small.

But if you're making an professional app. or a large app. then you should switch to ADO.

You can find an ADO example at:
http://www.avissoft.com/attachment.php?s=&postid=839

Thanks!
_________________
Code Snippets, Tutorials, Utilities, Controls

Low cost Web Hosting
Hosting starts at as low as $4 per year!


Always follow posting guidelines
Put your VB code in [vb ] your code [ /vb] tags!
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
Andir
Centurion


Joined: 21 Dec 2003
Posts: 184
Location: Chicago Area

PostPosted: Feb 6th, 2004 04:27 AM    Post subject: Reply with quote

I have to agree with Avis. Razz

I rarely use the data control because with ADO you can bind controls to the Recordsets given, or process the data manually. If your looking to just keep it simple and small, the controls work fine, but ADO gives you ALOT more options.

As I stated in another post, ADO is something I think everyone should get to know a little better. It can't hurt, and you'll be able to create more robust data applications.

It doesnt hurt to use it for large data files either. It's more agile than the Open/Close for file operation.
_________________
If you happen to see little people sitting on your desk...don't tell anyone or they might think your crazy too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic