B
Billp
I want to be able to copy the first record only, of an existing forms subform
to a new form.
I have a form called workscard that has a subform that contains many records.
The first record of the subform has the key elements.
This first record I need to copy to a new form called production Notes.
I have the following
' Evaluate filter before it is passed to Dlookup function.
strWorksNumber = Me!Works_Number
strCustomer = Me!Company_Name
StrFilter1 = "Works_Number = """ & Me!Works_Number & """"
'as it is a text value
With Forms!frmProject_Notes_1
.cboWorks_Number = strWorksNumber
.Customer = strCustomer
' in here we must take the first record from the Inventory
Item
.First_Item = Nz(DLookup("[Description]",
"tblInvoiceDetails", StrFilter1))
End With
But it is not filtered to the first record so it doesn't work to well.
Thanks in advance for valued assistance.
Kind Regards
Bill
to a new form.
I have a form called workscard that has a subform that contains many records.
The first record of the subform has the key elements.
This first record I need to copy to a new form called production Notes.
I have the following
' Evaluate filter before it is passed to Dlookup function.
strWorksNumber = Me!Works_Number
strCustomer = Me!Company_Name
StrFilter1 = "Works_Number = """ & Me!Works_Number & """"
'as it is a text value
With Forms!frmProject_Notes_1
.cboWorks_Number = strWorksNumber
.Customer = strCustomer
' in here we must take the first record from the Inventory
Item
.First_Item = Nz(DLookup("[Description]",
"tblInvoiceDetails", StrFilter1))
End With
But it is not filtered to the first record so it doesn't work to well.
Thanks in advance for valued assistance.
Kind Regards
Bill