I have a Patient data entry form (PK is NHS Number) and an Admissions data entry form (FK is NHS Number)
Admissions is NOT a subform of Patient due to its size (it uses tab control and has 3 pages)
When Admissions form opens (upon Patient form Close) I would like NHS Number from the Patient form to Autofill NHS Number in the Admissions form and the focus to go straight to the next field (Patient ID - this is hospital reference)
I have sorted the Focus on Patient ID part but my code for the autofill doesnt work
I am a complete novice with VBA so the above code is just my 'best guess'
I have looked at various similar threads but they don't seem to be quite what I need
Thanks
Admissions is NOT a subform of Patient due to its size (it uses tab control and has 3 pages)
When Admissions form opens (upon Patient form Close) I would like NHS Number from the Patient form to Autofill NHS Number in the Admissions form and the focus to go straight to the next field (Patient ID - this is hospital reference)
I have sorted the Focus on Patient ID part but my code for the autofill doesnt work
Code:
Private Sub Form_Load() Me![NHS Number] = " & Forms![frm_Patient_Data_Entry]![NHS Number]" End Sub
I have looked at various similar threads but they don't seem to be quite what I need
Thanks
Comment