Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLAST

Status
Not open for further replies.

rhonda11

Technical User
Nov 4, 2002
96
US
When I updat a record from the subform by project ID. I would it to clone the last record with of the currect Project ID (not the last record in general of the table but depending on the last record for that project ID). I have tried to do the following, however it clone the last record of the table instead of the current Project ID.

This is what I have so far to clone a field (Deliver date)
in the Default Value:
Dlast("[DeliveryDate]", "ProjectUpdate", "[ProjectID]")

Can somebody tell me what's wrong w/ the above? I need help.

Thanks in advance
 
Dlast("[DeliveryDate]", "ProjectUpdate", "[ProjectID]=" & me.parent!projectid)
will return the last record with the same projectid as the parent form
 
I'm getting a "#Name?" error when executed. What I have is
Dlast("[DeliveryDate]", "ProjectUpdate", "[ProjectNo]=" & me.parent!projectNo).
After I saved it, went back and it was converted to the following:

=DLast("[DeliveryDate]","ProjectUpdate","[ProjectNo]=" & [me].[Project]![projectid])

It's still giving me #Name? on that field.

Any other idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top