I am having one heck of a time to get the result of a sql query to load it's results into a string variable. I have tried the follow but get a Compile Error that says Expected Function or Variable, then shows my code with .runsql highlighted in blue. The strSQL will only ever result in a 7 digit phone number, w/ no dashes.
strSQL = "SELECT [AM Completions].[phone] WHERE [AM Completions].[phone] = Forms!Faxination1!Phone;"
strTest = (DoCmd.RunSQL(strSQL))
strSQL = "SELECT [AM Completions].[phone] WHERE [AM Completions].[phone] = Forms!Faxination1!Phone;"
strTest = (DoCmd.RunSQL(strSQL))