|
-
November 23rd, 2005, 12:17 PM
#1
vb and sql
hi there...
i need to catch data fro sql database every 1 minute to the vb form....i know i have to use timer but i really dunno do to do......do anyone have the source code.....help me......
-
November 23rd, 2005, 01:14 PM
#2
Re: vb and sql
Which version of VB and SQL do you have?
Which controls on the form are you repopulating?
-
November 24th, 2005, 01:30 AM
#3
Re: vb and sql
Need a bit more info!
-
November 24th, 2005, 03:02 AM
#4
Re: vb and sql
I’m using visual basic 6 and sql server 2000…need to catch data from sql every 1 minute to vb form and assign it to chart(charttype2dbar).. how do i do that.....i need to use timer but i dunno how to fetch the data every 1 minute........can anyone help me... do anyone have the source code
-
November 24th, 2005, 03:13 AM
#5
Re: vb and sql
Here is how you do it.
Put a timer control on the Form. Set the Interval property of the timer control to 60000 (Approximately 1 minute). In the Timer Event write the code for retrieving data. For example, Open a recordset using the query and then populate it wehere ever you want.
The timer event will always file every 1 minute and will retrieve the data from the database.
-
November 24th, 2005, 03:34 AM
#6
Re: vb and sql
one more question...
in my database table.... i have stored few data's....... and the data is yes and no....... now there are 4 data with yes... how do i count this data...using sql command statement....and assign it to the chart... i've tried but i couldnt.... please help me
-
November 24th, 2005, 03:40 AM
#7
Re: vb and sql
You could use the SQL Count function, if I'm not mistaken
-
November 24th, 2005, 04:16 AM
#8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|