17. Now we can create report and fill command “print”
Private Sub Command5_Click()
DataReport1.Show
End Sub
18. Add data enviroment.
19. Configuring properties and connection
20. Add Data report and configuring properties.
21. And you are DONE, running your application(F5) and Click print to see the result.
Violaa…. Thanks for your time
addthis_url = 'http%3A%2F%2Frizqtech.net%2F2010%2F02%2F09%2Faplikasi-sederhana-odbc-visual-basic-part-3%2F';
addthis_title [...]
8. Kembali pada project1.vbp pada program VB dan design form seperti di bawah ini.
9. Buatlah sebuah sample data di dalam tabel user.
10. Don’t forget to pointing DataSource for DataGrid1 and choose Adodc1.
11. Double Click Command and fill with Command Script
Private Sub Command1_Click() 'Add Command
Adodc1.Recordset.AddNew
End Sub
Private Sub Command2_Click() 'Edit Command
Adodc1.Recordset.Update
End Sub
Private Sub Command3_Click()'Save Command
Adodc1.Recordset.Save
End Sub
Private Sub [...]
Tutorial seri ini saya akan coba sharing mengenai bagaimana membuat aplikasi sederhana yang terkoneksi dengan database dan menyajikan report dengan menggunakan VB6.
Tutorial Details
Language: Visual Basic
Difficulty: Beginner
Estimated Completion Time: 1 Hour
Required : Visual Basic 6
1. Pertama siapkan terlebih dahulu “Data Sources (ODBC)”
Dalam tutorial ini saya menggunakan Windows XP
Start -> Control Panel -> Administrative Tools -> [...]
This scenario like previoust post – i guessed you’ve something about it.
Source Code 1 :
Private Sub Command1_Click()
End
End Sub
Private Sub Command2_Click()
Form2.Show
Form1.Enabled = False
Form3.Visible = False
End Sub
Source Code 2 :
Private Sub Command1_Click()
If Text1.Text = "rizky" And Text2.Text = "passwordgue" Then
Text1.Enabled = False
[...]
Today we can create a scenario to sharpen our skills.
-Create a form for login. if user click LOGIN, it will be redirect to another form called form2, if they’re click EXIT and program will be terminate.
-Create form2 containing login credentials to authorize users, if users success they will be redirect to another form, called form3 [...]
Tuesday, February 9, 2010
0 Comments