Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FRONT END ACCESS BACK END SQL SERVER

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
US
Been a long long time, brain is a bit rusty

I have in my database a f linked tabel going back to Sequel server,

name of the table is dbo_vw_acc_check_priority

im trying to run the following code,

StrSql = "UPDATE tblmain INNER JOIN (dbo_vw_acc_check_priority INNER JOIN tbltiers ON dbo_vw_acc_check_priority.cpty_priority_c = tbltiers.LetCode) ON tblmain.CounterpartyID = dbo_vw_acc_check_priority.CounterpartyID SET tblmain.Tier = [tbltiers]![Tier2];"

DoCmd.RunSQL StrSql

and i keep getting ODBC connection errors, i have a feeling im missing somethign damm obvious


please help!


 
You'll need to supply a connection string prior to you SQL statement. Something similar to this:

'Connect to the GenTCA DSN (Data Source Name), where UserID and Password are blank.
adoConn.Open "MyDSN", "", ""
Ashley L Rickards
SQL DBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top