Click to See Complete Forum and Search --> : In my form load event... check datatable column value...


laxatcg1
January 6th, 2007, 10:30 PM
On my form load event, I want to check the value of a particular column from the database till the End Of File and then perform a action. For ex: There is a column named 'SelectOption' in my datatable 'test' and I want to do some action if the value of the 'SelectOption' = 'Option1' till the end of file is reached. Hope am clear. Please help me on this regard. THank you!

GremlinSA
January 7th, 2007, 11:24 AM
So where do you have the problem ???

in the form_load event open your dataset (as per usual method) and do your checks...

But just something to note, this will drastically effect the load time of your form...

Gremmy..

laxatcg1
January 7th, 2007, 02:35 PM
What / How will be my check statement? I mean...

SelectOption(Database column name) = "Option1" till the end of the file. Please help me out.

laxatcg1
January 7th, 2007, 02:40 PM
Am sorry, I forgot to ask this... You had mentioned "... this will drastically effect the load time of your form" and you are absolutely right. Let me explain you what am planning to do... On loading my main form (start form) based on the Date.Today... I want to dynamically add rows/values on to my database.

So what/how do you suggest on handling this out?

cindex
January 8th, 2007, 11:43 AM
[How to make the Grid inactive (not in focus) as long as the user clicks the Grid's cell?

I saw your question. I have the same problem.

if you solve this problem, send e-mail me, please.

or reply this or passed your quote.

GremlinSA
January 8th, 2007, 02:13 PM
To open a ADO database look at this thread (http://www.codeguru.com/forum/showthread.php?t=409719&highlight=database+select) and i sugest reading over this thread (http://www.codeguru.com/forum/showthread.php?t=401790&highlight=database) for more information on this..

Gremmy..