Dear ALL VB_er
Aku menggunakan dua tabel dalam satu form dimana
tabel pertama di Load saat form masuk di listing formnya
tabel ke dua di load di form masuk di listing combo box dimana listingnya
spt dibawh ini :
Private Sub cmbcode_Change()
Dim menara2 As String
With rs
menara2 = App.Path & "\forex_index.mdf"
.ActiveConnection = "Provider=MSDASQL.1;Persist Security Info=False;Data
Source=menara1"
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.CursorType = adOpenStatic
.Source = "Select * from closingforex"
.Open
If cmbcode.Text = "YES" Then
.AddNew
.Fields("Cur_Code").Value = Text1.Text
.Fields("Description").Value = Text2.Text
.Update
End If
End With
End Sub
di listing selalu error di "TULISAN YANG TECETAK TEBAL DAN MIRING"
yang aku maksud kan adalah jika di combo box kita pilih Kata "YES" maka
secara otomatis
data akan masuk ke tabel yang Kedua yang hanya cuma butuh dua text1 dan
text2 tersebut.
tolong dong Listing yang benar untuk data pilihan di Combo Box itu gimana?
makasih
[Non-text portions of this message have been removed]