E.Ed.Lohamr
New member
- Local time
- Today, 11:22
- Joined
- Feb 7, 2013
- Messages
- 4
Yo,
I'm looking for a way to set the default value of a field in a form to be the last record in a table other than the table in which the form will be inputting data. I've seen code like this used:
Me.InputText.DefaultValue = "'" & Me.InputText & "'"
in the After Update event in order to set a default value as the last record in the same form, but this isn't what I want. I want the default value to come from the last record of another table. This way it will change if I put a new record in the other table, but will remain the same if I enter multiple records through form.
I am using Access 2010 and have a somewhat limited knowledge of it.
I'm looking for a way to set the default value of a field in a form to be the last record in a table other than the table in which the form will be inputting data. I've seen code like this used:
Me.InputText.DefaultValue = "'" & Me.InputText & "'"
in the After Update event in order to set a default value as the last record in the same form, but this isn't what I want. I want the default value to come from the last record of another table. This way it will change if I put a new record in the other table, but will remain the same if I enter multiple records through form.
I am using Access 2010 and have a somewhat limited knowledge of it.