Hi, can someone help me with the coding. I want to update the label TimeStart and label TmeEnd every 5 min. Can someone show how to do it. In this pogrom the label TimeStart only display first time when the form load but the label TimeStart not update with new time when msgbox revoke same goes to label EndTime. plz help me.
[code=vb]
Private Sub Timer2_Timer()
On Error Resume Next
Dim myvari As Integer
Dim...
User Profile
Collapse
-
upadate label TimeEnd and labelTime Start
-
Error in Database vb
[ODBC MICROSOFT DRIVER] The INSERT INTO statement contain unknown file name: 'TimeStart'
i realy no idea how to solve this error because the TimeStart is excatly the name i use in the Results table. plz guide me.
If myvari = vbOK Then
strSql1 = "INSERT INTO Results (TimeStart, TimeEnd, AverageSpeed, NumberOfCar)" & _
" VALUES ('" & frmDisplay.txtT imeStart.Text... -
Error in Database vb
[ODBC MICROSOFT DRIVER] The INSERT INTO statement contain unknown file name: 'TimeStart'
i realy no idea how to solve this error because the TimeStart is excatly the name i use in the Results table. plz guide me.
...Code:If myvari = vbOK Then strSql1 = "INSERT INTO Results (TimeStart, TimeEnd, AverageSpeed, NumberOfCar)" & _ " VALUES ('" & frmDisplay.txtTimeStart.Text -
Error in Database vb
What this error means
1. operation is not allowed when object is open.
I have two table in the database but one table only i manage to load data from vb6 but the other one cannot. i make connection for both this table using ODBC data environment. Why that happen when i have two different connection. one table is connection 1 and another table connection 2
plz guide me -
how to store data from msflexgrid in to database access
hi,I got few question here. Hope some one can me. plz help me i running out of time
1. how to make my msflexgrid to display data for every 5 min(especially the
number car and average speed.
2. Can the data from msflexgrid store in the database if yes how?
Private Sub Form_Load()
FillFlex
End Sub
Private Sub FillFlex()
On Error... -
sorry the problem is not in coding but how i store average speed (u will notice in my coding) to database.... -
This is my coding. My question here how i do i store information which been display in the Fillflex in to database.
i already has one database. is it ok if i add another one
[code=vb]
Private Sub Form_Load()
FillFlex
End Sub
Private Sub FillFlex()
On Error Resume Next
Dim lAvg As Long, iCOunt As Integer
Dim intTime As Date
strSql = "SELECT...Leave a comment:
-
how to display data from current time to before current time
Hi, can anyone help me [how to display data from current time to before current time].
when my program starts there is numbers and time will be display in the form of visual basic. it will run continuesly .My problem here is i dont know how to display the data 5min and before. Besides that i want to store this display for every 5 min and before. i already have database to store the number and time but not for every 5 min.should i create another... -
STORE average speed for every 5 min
hi this my code
[code=vb]
Private Sub Form_Load()
car_count = 0
Cumulative_Spee d = 0
End Sub
Private Sub Timer1_Timer()
Dim tmpNumber As Integer
Dim i As Integer
Dim Counter As Integer
Timer1.Enabled = False 'stop timing while storing number
Counter = 0
Randomize
... -
.
Hi, i'm new to visual basic. Can anyone introduce any website that teaches how to store values from visual basic 6 to Microsoft access. To tell truth i have been serving the net for almost 6 days to get the beginner tutorial for storing data form vb to database. kindly show me the way.i'm in dead end now. My project due date around the corner....Leave a comment:
-
i'm new to database. Can i create table database using vb tool. if yes what tool. or i use mic.Acess.Leave a comment:
-
how to store random number in database using visual basic 6
How do I create database which will store the random number that generated before I reset the random number and how do I check that new random number after I reset is exists in database. If exist then generate again and store new number in to database. I have created 10 label in the form which display the random number and at the same time I want random number generated to be stored in database. I don’t know how to start Plz help me with coding.... -
Thanks for the reply. i got problem here when after i reset. i have New set random number generated again. of coz the new set of random number can be exits in previous (before i reset) set of random number. how to check the new set of random with pervios set and discard if exits and generate new number again and check and store the number if it dint exits in previous set . Plz help me with the codingLeave a comment:
-
reset and start
can anyone help me to to do coding for reset and start again. i got 10 array of random number, 10 array for start time how do i reset the both array after the 10 array is filled and start filling up again for new random number again. -
Counter problem
hi i'm having trouble with my code
[CODE=vb]If lblNumberArray( i) = lbltmpNumber Then
EndTime = Now
lblEnd(i).Capti on = Format(EndTime, "hh:mm:ss")
StartTime = lblTime(i)
Timeduration = ((DatePart("n", EndTime) - DatePart("n", StartTime)) * 60) + (DatePart("s", EndTime) - DatePart("s", StartTime))
lblDuration(i). Caption = "" &... -
VB6 - count and tally array entries
Does anyone know how to total up the value of the elements in array for vb6 and count the number of elements store in array. -
Hi thanks for the reply, yes i'm trying to calculate time different between two event.
1. I have to create array of 10 (CarID)
2. I have to generate random number for 50.That generated random number is store in the array(CarID) that been created previously.
3. the generator random number have to be checked in array if its in array(CarID) or not. If not then store the random number in the array and store...Leave a comment:
-
Thanks for the reply. i understand what is the problem. but i still blur how to solve the problem. can i use randomize function for time interval. What i mean i dont want to fix the Timer 2 interval at the properties window but instead i want to randomize the interval. u might have clear of what i'm writing here by looking at my code
Private Sub Timer2_Timer()
Randomize x
x = 2000 + Int(Rnd() * 3000)
...Leave a comment:
-
Hi i try m modified ur code. ur code very helpful. I got some question here.
I need second timer. so i created one. To capture te endTime when car pass the second reader. The question here is can i randomize the time interval. this means i dont want to fix the time interval at properties window.
My code
Private Sub Timer2_Timer()
Randomize x
x = 2000 + Int(Rnd() * 3000)
Timer2.Interval...Leave a comment:
-
Thanks 4 the reply. i tryed ur suggestion but its x working. But i got question here . I need to store random in array of 10.Then i have to check if the random number exits or x if no i have to store number which been generatedin array of 10 (in any index ) at the same time i store time in at array time. How do i go abt.
Dim n As Integer
Private Sub Form_Load()
Randomize...Leave a comment:
No activity results to display
Show More
Leave a comment: