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

Recent content by jcbirch

  1. jcbirch

    Export Access RunSQL Queries to Excel

    Will this work if the queries are nestled as "RunSQL" statements within different macros? They are not "queries" per se. I'm not sure how to code for a Macro definition, or Macro contents.
  2. jcbirch

    Export Access RunSQL Queries to Excel

    Hi, I have an Access VB module that creates an Excel report. Part of the Access VB module calls a macro that runs a series of SQL statements based upon what the user specified. Different users have different business rules, thus there are multiple macros, and I select the appropriate one...
  3. jcbirch

    Include Random Memo Field Not in Group By

    You're a genius! That worked perfectly. Thanks so much.
  4. jcbirch

    Include Random Memo Field Not in Group By

    Hi, I know it's bad form, but I want to run a SQL statement with a GROUP BY wherein not all my data is in the GROUP BY clause nor aggregated. I just want to randomly pick a few fields for inclusion. Long story as to why... but trust me it's fine. Fields are as follows: sender domain(s) date...
  5. jcbirch

    Create Outlook COM Add-In to Search/Replace Acct. Numbers

    The problem is, I don't know how to form statements that define/call objects like words or emails or attachments or anything like that... so basically, I don't know where to start. I figured there are probably lots of people out there who would be able to accomplish this in just a few lines of...
  6. jcbirch

    Create Outlook COM Add-In to Search/Replace Acct. Numbers

    Hi, Hope someone can help me. This challenge seems like a doozy to me, but I figure it would be very easy to someone who knew what they were doing. I have experience with SQL programming and using VB to automate Excel reports (formatting, page setups, etc.) but this is way above my head. I...
  7. jcbirch

    APPEND FROM with Empty DateTime fields

    Hi, I'm using VFP 6.0 with Service Pack 5. I'm trying to automate an import process because I have to repeatedly import multiple tab-delimited text files. I am creating a new table structure, then using the "APPEND FROM" command to import the data. My issue is this: if one of the datetime...
  8. jcbirch

    Problems sizing chart area

    Sorry, actually, the syntax should be something like: .ScaleHeight(1.33, 0, 1) .ScaleWidth(1.33, 0, 1)
  9. jcbirch

    Problems sizing chart area

    Are you sure you have the correct object name ("Chart 1")? The way to tell is to deselect the object, record a new macro, select the object, stop recording, then view the macro code and see what it's called. Once you've checked that, try this: oSheet.Shapes("Chart 1").ScaleWidth(1.12) -Jessica
  10. jcbirch

    Excel Chart Location in VFP 6.0

    Hi, I'm creating an Excel report with a cover page (1st sheet) and a chart on the 2nd sheet, chart values in fields D35-F39. I can create the chart just fine. However, when I try to specify the location as an object on Sheet3, it totally disregards my specifications, and instead places the...
  11. jcbirch

    Reading Excel file like a table

    This might work for you too: CREATE TABLE MyTable ( ; Column1 c(25) NULL ; Column2 n(15,4) NULL ; Column3 d(8) NULL ; Column4 y NULL) SELECT MyTable APPE FROM "MyFile.xls" TYPE xl8 SHEET "Sheet1" Make sure you unfreeze any frozen panes first, and that the file is in Excel 97 format...
  12. jcbirch

    Copying Multiple Sheets from One Workbook to Another

    After hours of struggling, here's what I have found out. The next-to-last solution above works great for copying part of a sheet in a workbook to another tab in the same workbook. The last solution helps with copying part of a sheet in one workbook to another sheet in a separate workbook...
  13. jcbirch

    Copying Multiple Sheets from One Workbook to Another

    Yes, the code listed above was generated completely within Excel doing the steps I'm trying to convert to VFP-flavored VB. VFP doesn't seem to like the ARRAY() syntax, but I haven't figured out a way around it yet. The code starting with "Before:=" will need to be converted somehow as well. I...
  14. jcbirch

    Copying Multiple Sheets from One Workbook to Another

    Hi, I need some help with copying Excel sheets from one workbook to another using VFP 6. What I want to do is create several data tabs. Then create several report tabs, and copy the appropriate data tabs into each report as appropriate. The code below just copies several sheets from one open...
  15. jcbirch

    Change Excel Page Orientation from FoxPro

    That is great. Thank you!

Part and Inventory Search

Back
Top