sanders720
Programmer
I have a need to add a field of data to a report only if the criteria for another field equals one of five possible values. Otherwise, this information would be blank.
I am thinking of utilizing the dLookup feature. We have a database of parts that are either purchased, custom, modified or painted. If the part on the database is painted, dLookup should lookup that parts manufacturer in the table.
The problem is, where is this coded? I believe it would look something like this...
If Code.Value = "Painted" Then
Text117.Value = DLookUp("[ManufacturedBy]","tblPartsListing"," [PartNo] = '" & [Reports]![rptManufactured Parts List]![PartNo] & "' "
Else
Text117.Value = Null
End If
There really is not much information out about VBA with reports, at least compared to forms - where most of my stuff gets customized. Are you aware of a good overview source on this?
Thankyou in advance for your help.
I am thinking of utilizing the dLookup feature. We have a database of parts that are either purchased, custom, modified or painted. If the part on the database is painted, dLookup should lookup that parts manufacturer in the table.
The problem is, where is this coded? I believe it would look something like this...
If Code.Value = "Painted" Then
Text117.Value = DLookUp("[ManufacturedBy]","tblPartsListing"," [PartNo] = '" & [Reports]![rptManufactured Parts List]![PartNo] & "' "
Else
Text117.Value = Null
End If
There really is not much information out about VBA with reports, at least compared to forms - where most of my stuff gets customized. Are you aware of a good overview source on this?
Thankyou in advance for your help.