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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. scottrod

    anyone familiar with '.pasteFace.?

    Sample to create toolbar on right with four custom button images: Sub Auto_Open() savestate = ActiveWorkbook.Saved On Error Resume Next NumTools = 4 For i = 1 To NumTools pn = "Picture" & Application.Trim(Str(i))...
  2. scottrod

    error '80004005' on Access DB

    Well, I figured it out, but don't understand the problem. I changed the table name (F2, type away) changed my code to reference the new (same old) table. Works like a charm. Thanks for the assistance though.
  3. scottrod

    error '80004005' on Access DB

    Forgive me, but I haven't quite experienced all the DSN DSN-less connection strings and haven't found what I'm looking for online. Do I increase the timeout settings with the provider (I'm providing with string in global.asa, first foray there) or when I make the connection (provided in...
  4. scottrod

    error '80004005' on Access DB

    I'm building a project using an Access db and PWS. A frames page populates two combo boxes with information from two tables. No problem so far. The choices the user makes will build my SQL statement for reporting. I make the connection using an include, Jet 4.0 Provider. My problem is once I...
  5. scottrod

    Having an Excel Macro Process run without Seeing it run

    You can use Application.ScreenUpdating=False to keep the screen from flipping around, if you're selecting sheets, cells, etc. In some instances the process will be faster because the screen doesn't have to be updated. Application.ScreenUpdating=True turns it back on.
  6. scottrod

    Beginning SQL assistance

    Believe I might have found the solution with the self join: SELECT IntrFac.NameID, IntrFac.AccountID, IntrFac_1.AbsAmount, IntrFac_1.Amount, IntrFac.S2KFormat FROM IntrFac INNER JOIN IntrFac AS IntrFac_1 ON (IntrFac.AbsAmount = IntrFac_1.AbsAmount) AND (IntrFac.AccountID = IntrFac_1.NameID) AND...
  7. scottrod

    Beginning SQL assistance

    In an Access97 Db I have the following table: Table:IntrFac NameID,AccountID,AbsAmount,Amount,and S2KFormat Here's sample data: NameID AccountID AbsAmount Amount S2KFormat 4190 3290 536 536 419.0.2991.00.3290 3330 3290 536 536 333.0.2991.00.3290 3290 2100 536...
  8. scottrod

    Deleteing Recordset

    Thanks for the response. I forgot about DELETE. Once again, thanks.
  9. scottrod

    Deleteing Recordset

    Only knowing enough to get myself in trouble, I'm trying to delete records from a recordset. I'm writing the code in Excel97 against an Access97 database using an ADO connection. I populate a table with data from one of the Excel worksheets. This data contains certain records that need to be...
  10. scottrod

    Interfacing Access with html...

    Call me a newbie but this is really a good tutorial using ASP pages. Lots of good information on the site as well. http://www.devguru.com/features/tutorials/ADOandASP/adoTutorial.html The tutorial has sample database and the ASP page to go with it.
  11. scottrod

    How to add records in ADO?

    I'm still learning too. Here's a great link of example code straight from the horse's mouth. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmscadocodeexamplesinvisualbasic.asp The main ADO page has some good information and the above link...
  12. scottrod

    Referencing Excel 2000 ActiveX controls

    Figured it out: Sub test() ActiveSheet.OLEObjects("Frame1").Object.OptScott.Value = 1 End Sub
  13. scottrod

    Referencing Excel 2000 ActiveX controls

    I have a worksheet I'm testing controls with. I can place controls in the worksheet and run code off them but now I want to try something else. I've placed a Microsoft Forms 2.0 Frame on a worksheet. I then added two option buttons to the frame. How do I refer to those option buttons within...
  14. scottrod

    SaveFile Excel as DBF file behind the scenes

    Would something like this work? Aplication.ScreenUpdating=False Windows("mbr.txt").Activate ActiveWorkbook.SaveAs Filename:="C:\Scottr\mbr.dbf", FileFormat:=xlDBF4, _ CreateBackup:=False ActiveWindow.Close Application.ScreenUpdating=True This scenerio could work if run...
  15. scottrod

    Closing Delimited Files from Excel

    I've used this statement to close delimited files that I've opened: Application.DisplayAlerts = False ActiveWorkbook.SaveAs... Windows.Application.ActiveWindow.Close I open a delimited file, do some manipulations then save as a text file. I turn off Alerts so I'm not prompted to save as an...
  16. scottrod

    SaveFile Excel as DBF file behind the scenes

    You could use Application.ScreenUpdating=False so things happen in the background and set it back to True when done. You could record the macro and get the code for SaveAs. The only thing you might have to worry about is how you want things to be controlled; meaning I'm not familiar with .DBF...
  17. scottrod

    How do I search folders for a specific file?

    Don't know if this will help you, but I pieced together pieces of code from this site to allow me to select a directory, look for all .bmp files in the selected folder and rename them a certain way if a condition was met. http://www.mvps.org/vbnet/index.html?code/fileapi/copyfile.htm I don't...
  18. scottrod

    How to SaveAs in Excel/ VBA using cell values ?

    You can name a Range for the cell that will contain the information you are trying to include in the SaveAs statement. Say C6's contents is "Accounting" I would name the Range C6 as sFileName so I could then say StrCpy1=Range("sFileName") Whatever is in that cell will be...
  19. scottrod

    Execute VB Code in Background

    In your code, you can try Application.ScreenUpdating=False Application.StatusBar = "Opening File X" This should allow you to open files in the 'background' without the screen changing. While screen updating is turned off, I like to use the second line to change the status bar, so I...
  20. scottrod

    Excel VBA SQL statements

    sAccount is dimmed as string. sAccount is populated by choosing an account from a combo box on the user form. Once the selection is made, it is stored on a sheet in a named range. When I need to use it, I set sAccount=Range("cmbAccount"). Since it works with short account names, I...

Part and Inventory Search

Back
Top