On my form, I have a field called 'email.' I want to click a button and alight the text in the 'email' text box to the right.
I am getting a 'syntax error.' What am I doing wrong? I am new to Access. What is the syntax for referring to controls on a form?Code:Private Sub cmdDoCmd_Click() Email = DoCmd.RunCommand acCmdAlignRight End Sub