cpopham Posted April 11, 2005 Posted April 11, 2005 I am filling a datatable from a database and I have a couple of questions: 1) If the dataadpter returns zero records, will it still create a datatable in the dataset and just leave it empty? 2) If it does not create a table how could I verify that the datatable exists in an if statement? 3) How can I verify if a datatable contains at least one record in an if statement? Chester Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
penfold69 Posted April 11, 2005 Posted April 11, 2005 I am filling a datatable from a database and I have a couple of questions: 1) If the dataadpter returns zero records, will it still create a datatable in the dataset and just leave it empty? Yes 2) If it does not create a table how could I verify that the datatable exists in an if statement? Not an issue - it does create it. 3) How can I verify if a datatable contains at least one record in an if statement? Chester If dt.Rows.Count > 0 Then ' your code here End If Quote
cpopham Posted April 11, 2005 Author Posted April 11, 2005 Yeah, I figured it out. I am switching back and forth between vb .net programming and access vba programming and going to school full time so my mind does not always remember things the way that it should. Thanks for the help :) Chester Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.