| | |
Help on making and using Database in VB
Thread Solved |
•
•
Join Date: Dec 2006
Posts: 3
Reputation:
Solved Threads: 0
Hi
I am developing an automation system using PC. I have built quite a big hardware but when it comes to Visual Basic, I am a novice. I have done a lot but need help in using database. I know how to link it in VB, i.e by using datacontrols(i prefer it over adocontrols) and linking them with labels etc BUT I dont know how to create a database and how to extract and use its data.
The database i need would contain date,time, id and operations field. Can any one tell me how can i create such a db in VB using visdata or in MS-access.... which ever is easiest
And how do I extract the date/time and compare it with current PC time.. then if found matched read other field values else progress forward.
Can anyone help me around on these "simple" issues. Codes or links to tutorials will do great!
I am developing an automation system using PC. I have built quite a big hardware but when it comes to Visual Basic, I am a novice. I have done a lot but need help in using database. I know how to link it in VB, i.e by using datacontrols(i prefer it over adocontrols) and linking them with labels etc BUT I dont know how to create a database and how to extract and use its data.
The database i need would contain date,time, id and operations field. Can any one tell me how can i create such a db in VB using visdata or in MS-access.... which ever is easiest
And how do I extract the date/time and compare it with current PC time.. then if found matched read other field values else progress forward.
Can anyone help me around on these "simple" issues. Codes or links to tutorials will do great!
Hi,
Use MS-Access,
Go to MS-Access, Select NewDatabase Option,
Enter Path and Name , Say Create.
Click On New-->>Design View-->> OK
Enter Field Name, Type : Date/Time (Stores Both).
In VB, to get System Date :
Format(Date,"dd-mm-yyyy")
System Time :
Format(Now,"hh:mm:ss")
Compare Dates :
If Format(CDate(Text1.Text),"dd-mm-yyyy") =
Format(Date,"dd-mm-yyyy") Then
' Write ur coding Here
End If
Regards
Veena
Use MS-Access,
Go to MS-Access, Select NewDatabase Option,
Enter Path and Name , Say Create.
Click On New-->>Design View-->> OK
Enter Field Name, Type : Date/Time (Stores Both).
In VB, to get System Date :
Format(Date,"dd-mm-yyyy")
System Time :
Format(Now,"hh:mm:ss")
Compare Dates :
If Format(CDate(Text1.Text),"dd-mm-yyyy") =
Format(Date,"dd-mm-yyyy") Then
' Write ur coding Here
End If
Regards
Veena
•
•
Join Date: Dec 2006
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
Hi,
Use MS-Access,
Go to MS-Access, Select NewDatabase Option,
Enter Path and Name , Say Create.
Click On New-->>Design View-->> OK
Enter Field Name, Type : Date/Time (Stores Both).
In VB, to get System Date :
Format(Date,"dd-mm-yyyy")
System Time :
Format(Now,"hh:mm:ss")
Compare Dates :
If Format(CDate(Text1.Text),"dd-mm-yyyy") =
Format(Date,"dd-mm-yyyy") Then
' Write ur coding Here
End If
Regards
Veena
www.vbtutor.net
I'll include a bit of my intro as well as i am a newbie on this website. I am a student of Electronics Engg. and am building an automation system using Powerline Communications based on Personal Computer and Embedded Systems. Needed help for the same... and incase anyone ever find any problems in area listed above.. plz donot hesitate to ask..(send a private msg)
tc thanks
![]() |
Similar Threads
- Oracle Help Needed (Oracle)
- Joining HDD (Storage)
- How to connect queries from SQL Server 2005 to VB.Net Windows application (VB.NET)
- How to connect queries from SQL Server 2005 to VB.Net Windows application (MS SQL)
- Database Question From Newbie (MySQL)
- mysql_connect (PHP)
- Access Web Database? (Database Design)
- oracle or sql server2000, which is best? (Oracle)
- New Announcements! (DaniWeb Community Feedback)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: VB6 Building Access from code
- Next Thread: vb 5.0 to excel
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






