D
Dale
I cannot seem to figure out what is wrong with my select
statement. It seems so simple, yet it escapes me.
I am taking information from a custom form i.e. order
number and after connecting to a SQL database want to
select that order form the database.
Here is the code:
Set rstOrd = CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM ord WHERE [OrdNum] = " & OrderNo
ord = database table name
[OrdNum] = database field name
OrderNo = filed(control) from custom form
Your help is appreciated and thanks you in advance.
Dale
statement. It seems so simple, yet it escapes me.
I am taking information from a custom form i.e. order
number and after connecting to a SQL database want to
select that order form the database.
Here is the code:
Set rstOrd = CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM ord WHERE [OrdNum] = " & OrderNo
ord = database table name
[OrdNum] = database field name
OrderNo = filed(control) from custom form
Your help is appreciated and thanks you in advance.
Dale