okay..i'm not very good at coding....i'm trying to copy some fields in a form to a table.
Can i use the code for forms
e.g.
Private Sub Purchase_Orders_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "PurchaseOrder"
'
DoCmd.OpenForm stDocName, , , stLinkCriteria
'
[Forms]![PurchaseOrder]![EndUser] = [Forms]![Orders]![EndUser]
[Forms]![PurchaseOrder]![OrderID] = [Forms]![Orders]![OrderID]
[Forms]![PurchaseOrder]![MemoField] = [Forms]![Orders]![MemoField]
End Sub
but modify this code using recordsets??
Basically can these bits of code run together in the same algorithm??
Thanks in advance
Sarah
Can i use the code for forms
e.g.
Private Sub Purchase_Orders_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "PurchaseOrder"
'
DoCmd.OpenForm stDocName, , , stLinkCriteria
'
[Forms]![PurchaseOrder]![EndUser] = [Forms]![Orders]![EndUser]
[Forms]![PurchaseOrder]![OrderID] = [Forms]![Orders]![OrderID]
[Forms]![PurchaseOrder]![MemoField] = [Forms]![Orders]![MemoField]
End Sub
but modify this code using recordsets??
Basically can these bits of code run together in the same algorithm??
Thanks in advance
Sarah