Good Morning,
I have little problem, I hope One of You Master can solve very fast. Thanks
Dim SqlInv As String
Dim cn As ADODB.Connection
Dim UPD_Invoice As ADODB.Recordset
Set cn = CurrentProject.AccessConnection
Set UPD_Invoice = New ADODB.Recordset
SqlInv = "SELECT [Invoice-Tb].Repl_Invoice, [Invoice-Tb].InvoiceNo" & _
"FROM [Invoice-Tb] " & _
"WHERE ((([Invoice-Tb].InvoiceNo)= Me.Invoice_No))"
UPD_Invoice.Open (SqlInv), cn, adOpenDynamic
With UPD_Invoice
.Update
!Repl_Invoice = R_Inv_No
.Update
End With
UPD_Invoice.Close
I have little problem, I hope One of You Master can solve very fast. Thanks
Dim SqlInv As String
Dim cn As ADODB.Connection
Dim UPD_Invoice As ADODB.Recordset
Set cn = CurrentProject.AccessConnection
Set UPD_Invoice = New ADODB.Recordset
SqlInv = "SELECT [Invoice-Tb].Repl_Invoice, [Invoice-Tb].InvoiceNo" & _
"FROM [Invoice-Tb] " & _
"WHERE ((([Invoice-Tb].InvoiceNo)= Me.Invoice_No))"
UPD_Invoice.Open (SqlInv), cn, adOpenDynamic
With UPD_Invoice
.Update
!Repl_Invoice = R_Inv_No
.Update
End With
UPD_Invoice.Close