Skip to content
View in the app

A better way to browse. Learn more.

Komuniti @PuTeRA

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Minta Tolong Otai2 Semua

Featured Replies

salam..minta tolong kat otai2 semua...sapa ada sample vb yang bleh sync access 2000..dah cari dalam planetsourcecode pi x pandai nak modify la...minta tolong wahai otai2 programmer...
VB apa? VB6 @ .net ?
nak guna ADO @ nak pure code terus dalam VB.

//masokis mahir vb6 je.. tu pun skit2 :P
sekarang hang guna VB apa nih..?? nak connect ke database mana..?? soalan biaq terang skit... kalau ada code yang buat separuh jalan atau ada error boleh paste kat sini sekali... ada jer org2 sini yang sudi bantu..hihihihi... harap maklum...
  • Author
oo...sori vb6 ..kalau boleh ADO..kalau la ada cara copy field ngan table pastu paste dlm .mdb (format 2000 & ada password) lain...


nak pakai code ni pi x pandai sangat...masih blajar


'**************************************
' Name: Database Table Copy
' Description:This code will copy all fields from all tables in a database and add them to another identical database.
My company has Rep submitting database reports all the time. I need to append the data from the reports database to a live database. At first I was running querys I had made in the database but our file structure changed and that was no long an option. This is about as simple as it gets but someone might find it useful.
' By: Shawn Jetton
'
' Inputs:Call the function like this.
AddData "C:\My Documents\Test\From.mdb", "C:\My Documents\Test\To.mdb"
'
' Side Effects:None that I know of.
'


Public Sub AddData(DataFrom As String, DataTo As String)
Dim dbFrom, dbTo As Database
Dim rsFrom, rsTo As Recordset
Set dbFrom = OpenDatabase(DataFrom)
Set dbTo = OpenDatabase(DataTo)
For n = 0 To dbFrom.TableDefs.Count - 1
'This search out on table in your database
If dbFrom.TableDefs(n).Attributes = 0 Then
Set rsFrom = dbFrom.OpenRecordset(dbFrom.TableDefs(n).Name)
Set rsTo = dbTo.OpenRecordset(dbTo.TableDefs(n).Name)
End If
'Loops through all fields in table and copies from dbFrom to dbTo.
Do Until rsFrom.EOF
rsTo.AddNew
For i = 1 To rsTo.Fields.Count - 1
If rsFrom.Fields(i) = "" Then GoTo hell
rsTo.Fields(i) = rsFrom.Fields(i)
hell:
Next i
'This updates and moves to the next record in the from database
rsTo.Update
rsFrom.MoveNext
Loop
Next n
dbFrom.Close
dbTo.Close
End Sub



bleh terangkan x?...huhu..minta tolong

Edited by wan2c

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.