+ Reply to Thread
Results 1 to 4 of 4

1004 general ODBC error office 97 windows xp

  1. #1
    Registered User
    Join Date
    01-15-2008
    Posts
    2

    1004 general ODBC error office 97 windows xp

    I am not knowledgeable in excell and have no understanding of macros. I am installing a new computer into a network. other computers with 0ffice 97 run macros fine. when i attempt to run macros from the new computer i get the "1004 general ODBC error" message. i have disabled firewalls, virus protection , etc. I also opened the general tab and clicked the "enable macros" button. I can compare settings with computers that are running macros, but I don't know where to look to compare the settings.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello astro,

    Since Windows '97, there have been a few changes made in how ODBC connections are established. To answer your question about what is wrong, you need to post your ODBC connection string code, and include which database server you are connecting to e.g., Oracle, SQL, etc.

    Sincerely,
    Leith Ross

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Does the code connect to a Database?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    01-15-2008
    Posts
    2
    the database server is FoxPro.DBF format. I don't know if this is connected to the database. after installing excel 97 i just opened the file through the file directory -file -open. then went to -tools -macro as i was shown to do with another computer that is set up properly.
    I don't know where to find the ODBC connection string.
    these are the addresses i found in the visual basic debugger.

    this was hi-lighted:
    Workbooks.Open FileName:= _
    "Z:\LABORATORY\LAB DATA\LAB DATA TEMPLATES\Alkalinity2320B 'enter date here'.xls"

    this was in the same section:

    Range("A20").Select
    With ActiveSheet.QueryTables.Add(Connection:= _
    "FINDER;L:\XLTools\Queries\Alkalinity2320B.dqy", Destination:=Range("A11"))


    ChDir "Z:\LABORATORY\LAB DATA\LAB DATA TEMPORARY"
    ActiveWorkbook.SaveAs FileName:= _
    "Z:\LABORATORY\LAB DATA\LAB DATA TEMPORARY\Alkalinity2320B 'enter date here'.xls", _
    FileFormat:=xlNormal, Password:="", WriteResPassword:="", _


    thanx for all the help. i need it on this one.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1