TourOperator
Registered User.
- Local time
- Today, 20:22
- Joined
- Sep 11, 2014
- Messages
- 14
Hi,
I am trying to create VBA code (I have very little experience of VBA) to recreate a parameter query mail merge, which Access 2013 cannot achieve with the controls provided.
I think that I need to assign a variable to the value of a control on my form then assign that variable to the relevant criteria section of my query.
I have this so far:
From there I would like to do a Word Mail Merge by having VBA open a document in Word, then activate the Merge to a New Document instruction.
Any help would be much appreciated.
Cheers.
I am trying to create VBA code (I have very little experience of VBA) to recreate a parameter query mail merge, which Access 2013 cannot achieve with the controls provided.
I think that I need to assign a variable to the value of a control on my form then assign that variable to the relevant criteria section of my query.
I have this so far:
Code:
DIM RefNo as String
DIM IDNo as String
RefNo = Me.[Reference Number].Value
IDNo = Me.Text582.Value
DoCmd.OpenQuery “SORTER”
‘How do you paste into criteria?
From there I would like to do a Word Mail Merge by having VBA open a document in Word, then activate the Merge to a New Document instruction.
Any help would be much appreciated.
Cheers.