A
amywolfie
I am trying to write Jet SQL that will open a form where PK = fk, and
FC_County = "FC". I'm getting a syntax error -- here's the code:
================
Dim StrSQL As String
StrSQL = "SELECT dbo_States.State_pk, dbo_County.State_fk,
dbo_County.FC_County " & _
"FROM dbo_County INNER JOIN dbo_States ON dbo_County.State_fk =
dbo_States.State_pk " & _
"WHERE(dbo_County.FC_County = 'FC') AND (dbo_States.State_pk =
dbo_County.State_fk);"
DoCmd.OpenForm "subfrmCounty", , , StrSQL
=====
Thanks.
FC_County = "FC". I'm getting a syntax error -- here's the code:
================
Dim StrSQL As String
StrSQL = "SELECT dbo_States.State_pk, dbo_County.State_fk,
dbo_County.FC_County " & _
"FROM dbo_County INNER JOIN dbo_States ON dbo_County.State_fk =
dbo_States.State_pk " & _
"WHERE(dbo_County.FC_County = 'FC') AND (dbo_States.State_pk =
dbo_County.State_fk);"
DoCmd.OpenForm "subfrmCounty", , , StrSQL
=====
Thanks.