Hi
I am trying to copy field from one form and "paste" it to another form field.
Basically A NONINLIST routine on PreviousForm opens the CitiesForm, creates a new record, and the field from the original form (LoadingCity) gets copied to a field on the newly opened form (CityName).
I´ve done this but it doesn´t work.
stDocName = "CitiesForm"
DoCmd.OpenForm stDocName
DoCmd.GoToRecord , , acNewRec
Forms![CitiesForm]![CityName] = Forms![PreviousForm]![LoadingCity]
I know it is super easy and I have done a search in the forum without success.
Can anyone help ?
Regards
I am trying to copy field from one form and "paste" it to another form field.
Basically A NONINLIST routine on PreviousForm opens the CitiesForm, creates a new record, and the field from the original form (LoadingCity) gets copied to a field on the newly opened form (CityName).
I´ve done this but it doesn´t work.
stDocName = "CitiesForm"
DoCmd.OpenForm stDocName
DoCmd.GoToRecord , , acNewRec
Forms![CitiesForm]![CityName] = Forms![PreviousForm]![LoadingCity]
I know it is super easy and I have done a search in the forum without success.
Can anyone help ?
Regards