Adodc1.ConnectionString = strconnect Adodc1.RecordSource = SELECT from tempatwisata
adodc1.Recordset DataGrid1.AllowUpdate = False
Set DataGrid1.DataSource = Adodc1 Image2.Picture = LoadPictureApp.Path \gambar\ Adodc1.Recordsetgambar
WindowsMediaPlayer2.URL = video\form6.amr End Sub
Private Sub Form_Load1
Label3.FontSize = 20 Label3 = Tempat Wisata Daerah
End Sub
Private Sub Image6_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Timer1_Timer
Label3.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label3.Left + Label3.Width = 0 Then
Label3.Left = Me.Width End If
Label3.Left = Label3.Left - 100 End Sub
Private Sub Image4_Click
Form5.Show WindowsMediaPlayer2.Close
End Sub
5. Alat Musik
Dim gambar As Integer Private Sub Form_Load
gambar = 1 Image1.Picture = LoadPictureApp.Path \gambar\image gambar .jpg
WindowsMediaPlayer2.URL = video\form7.amr End Sub
Private Sub Timer2_Timer
gambar = gambar + 1 If gambar 5 Then gambar = 1
Image1.Picture = LoadPictureApp.Path \gambar\image gambar .jpg End Sub
Universitas Sumatera Utara Universitas Sumatera Utara
Private Sub Image2_Click
Form9.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image3_Click
Form6.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image9_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Timer1_Timer
Label4.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label4.Left + Label4.Width = 0 Then
Label4.Left = Me.Width End If
Label4.Left = Label4.Left - 100 End Sub
Private Sub Form_Load1
Label4.FontSize = 20 Label4 = Alat Musik
End Sub
Private Sub Command1_Click
Form8.Show WindowsMediaPlayer2.Close
End Sub
Menu Alat Musik
Option Explicit Dim conn As New ADODB.Connection
Dim strconnect As String Function openconn As Boolean
On Error GoTo ErrHandler strconnect = provider=Microsoft.Jet.OLEDB.4.0;Data Source= + App.Path +
\Database3.mdb If conn.State = adStateOpen Then
conn.Close Set conn = New ADODB.Connection
conn.Open strconnect openconn = True
Universitas Sumatera Utara Universitas Sumatera Utara
Else conn.Open strconnect
openconn = True End If
Exit Function ErrHandler:
openconn = False MsgBox koneksi tidak bisa dibuka, vbExclamation, koneksi error
End Function Private Sub DataGrid1_RowColChangeLastRow As Variant, ByVal LastCol As
Integer With Adodc1.Recordset
Text1.Text = .Fields.Item0.Value Text2.Text = .Fields.Item1.Value
End With Image2.Picture = LoadPictureApp.Path \gambar\ Adodc1.Recordsetgambar
End Sub
Private Sub Form_Load
If Not openconn Then End Adodc1.ConnectionString = strconnect
Adodc1.RecordSource = SELECT from gambaralatmusik adodc1.refresh
DataGrid1.AllowUpdate = False Set DataGrid1.DataSource = Adodc1
Image2.Picture = LoadPictureApp.Path \gambar\ Adodc1.Recordsetgambar WindowsMediaPlayer2.URL = video\form8.amr
End Sub
Private Sub Image10_Click
Form2.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Image3_Click
Form7.Show WindowsMediaPlayer2.Close
End Sub
Private Sub Timer1_Timer
Label4.ForeColor = RGBRnd 250, Rnd 250, Rnd 250 If Label4.Left + Label4.Width = 0 Then
Label4.Left = Me.Width End If
Label4.Left = Label4.Left - 100 End Sub
Universitas Sumatera Utara Universitas Sumatera Utara
Private Sub Form_Load1
Label4.FontSize = 20 Label4 = Gambar Alat Musik
WindowsMediaPlayer2.Close End Sub
6. Makanan Khas