Two problems:
You mention nothing about how your form is laid out
You mention nothing about your table and field layout.
Since Access is just VBA, you can just use the shell() function from within the Button Click event of a form in access.
Without knowledge of your database schema, I created my own to serve as an example.
It consists of a single table, tblComputers, which merely lists two computer names (Field:Compname), as well as some otherwise useless satellite data (the type of the machine, laptop or desktop) (field:Type). I added two entries to the table corresponding to my two machines, record navigation buttons, that type of stuff.
The important bit is the "connect" button I added. The code simply runs "Shell":
Private Sub Detail_Click()
Shell "mstsc /v:" + CompName.Text + " /w:640 /h:480"
End Sub
Presumably, your database scheme also includes whether they are a desktop or a laptop; (based on the content of the batch file) in which case you could build the computer name to use like so:
Private Function GetConnectName() as String
if MachineType.Text="Desktop" Then
GetConnectName="MAX42MGWK" + DesktopNumber.Text
Else
GetConnectName="MAX42MGLP" + LaptopNumber.Text
End If
End Function
and then the Click event becomes:
Private Sub Detail_Click()
Shell "mstsc /v:" + GetConnectName() + " /w:640 /h:480"
End Sub
Without more info on your database schema/form setup, I can't really provide anything more specific than that.