Hi Guys.
Have a form for logging documents. One document type is employee generated and does not have a unique number(field is indexed, no duplicates)
What i need is for this document type to auto populate with a number(easiest way i see to use the document ID autonumber)
Document type is controlled by a combo box on the form.
Table: Documents
Table Fieldname: DocumentType
TextBox Name: DocumentType
Control Source: DocumentType (before this requirement)
Document Type Combox Box Name: DocumentType
Document need auto poulate for: "Engineers Log"
So i believe it needs to be something along these lines but this just shows the value, doesnt save to table, and for the false evaluation im not sure what i need here to lookup if already a value or leave blank for data entry.
=IIf([DocumentType]="Engineers Log",[DocumentID],"")
Have a form for logging documents. One document type is employee generated and does not have a unique number(field is indexed, no duplicates)
What i need is for this document type to auto populate with a number(easiest way i see to use the document ID autonumber)
Document type is controlled by a combo box on the form.
Table: Documents
Table Fieldname: DocumentType
TextBox Name: DocumentType
Control Source: DocumentType (before this requirement)
Document Type Combox Box Name: DocumentType
Document need auto poulate for: "Engineers Log"
So i believe it needs to be something along these lines but this just shows the value, doesnt save to table, and for the false evaluation im not sure what i need here to lookup if already a value or leave blank for data entry.
=IIf([DocumentType]="Engineers Log",[DocumentID],"")