Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi Forum, I have problems to add a

Status
Not open for further replies.

xerife007

Technical User
May 7, 2002
40
PT
Hi Forum,
I have problems to add and update new records from multi tables in the same form using ADO connetion. I use ODBC and access2000
There is some tips about this.

Thak you all.
 
And another thik with this code i can't clean the fields :
What is wrong ?

Private Sub Command4_Click()
Dim n As Integer
Dim adoSecondaryRs As Recordset
n = txtfields(0).Text
Call contaId(n)
Set adoSecondaryRs = New Recordset
adoSecondaryRs.ActiveConnection = m_oConn
adoSecondaryRs.CursorLocation = adUseClient
adoSecondaryRs.Open "Select * from", m_oConn, _
adOpenStatic, adLockOptimistic

txtfields(0).Text = n

With adoSecondaryRs
If Not (.BOF And .EOF) Then
mvBookMark = .Bookmark
End If
.AddNew

txtfields(188).Text = Format$(Now, "dd-mm-yyyy")
txtfields(189).Text = Format$(Now, "hh:mm:ss")

mbAddNewFlag = True

End With

Exit Sub


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top