I am making a system for my school with a database that sends an email to the resources department every time a worksheet needs to be printed out.
The table's fields are:
- ID (an auto number)
- The web address of the online file (a hyperlink)
- The key (what the user types in to the parameter query that then emails the corresponding data to resources (a text string)
- A description of the worksheet (a memo)
To send the email, the user fills in a set of parameter query. Instead of the query results coming up, the email should be sent. The query should contain the following fields:
- The key of the worksheet (a text string)
- How many worksheets need to be printed (a number)
- Any notes (a memo) Then they click OK and the email is sent.
The email should contain this information, which corresponds to the data entered in the query:
- A hyperlink to the worksheet
- How many worksheets the user said need to be printed
- The notes the user submitted and the notes already in the table
To download my database so far, click here.
I would like to do this in VBA code. Could you guide me along the right lines to making this work? Any code suggestions would be helpful as I am new to VBA. Thanks