Search results

  1. K

    Solved Export Column to Text File Issues

    This worked: Sub exportTextNoob() Dim iCntr As Long Dim strFile_Path As String strFile_Path = "C:\myfilepath" Open strFile_Path For Output As #1 For iCntr = 1 To Cells(Rows.Count, "F").End(xlUp).row Print #1, Range("F" & iCntr) Next iCntr Close #1 End Sub
  2. K

    Solved Export Column to Text File Issues

    Yes. All I'm trying to do is copy the data in column F to the data.txt file
  3. K

    Solved Export Column to Text File Issues

    Good question. Sometimes the cells are blank.
  4. K

    Solved Export Column to Text File Issues

    Hi, I have the following sub that exports a column (F) from an Excel file to a text file named data.txt. This has been working, but my data set has grown and for some reason this routine does not copy all of the data from column F, stopping at 43,020 lines. I have about 180k lines that need...
  5. K

    SQL Works As Query But Not View

    So this was the correct solution. So strange, but writing Create view viewname AS <query> worked. However, when I went to the view design and simply wrote the query text in the query box, it gave me the aforementioned error. Does anyone know why? Anyways, thank you everyone!!!!
  6. K

    SQL Works As Query But Not View

    I don't think so in this case. The data (sensitive) is being transferred to my server through another intermediary server. I have copies of the tables, not references to the tables on an external server. I created the schema campus because that's how the upstream data people wanted to send it.
  7. K

    SQL Works As Query But Not View

    Campus is a schema that is coming over from another server, so I'm prefixing the table names with that schema. I just think it's strange this works as a query but not a view.
  8. K

    SQL Works As Query But Not View

    I understand that it may be necessary to share my underlying table structure - but the fact that it executes as a query leads me to believe it's not a systemic issue in the query, but just that i'm missing some important detail.
  9. K

    SQL Works As Query But Not View

    Hello all, The following SQL statement works in SQL Server Management Studio as a query on my server: select p.stateID, p.personID, hm.memberID, hm.startDate as householdMemberStartDate, hm.endDate as householdMemberEndDate, hm.secondary as householdMemberSecondary, hl.locationID...
  10. K

    Designing MySQL Query for VBA Application

    Thanks Sonic. The 'NOT EXISTS' didn't occur to me. Ill give this a shot and report back. Cheers, K
  11. K

    Designing MySQL Query for VBA Application

    Do you want my table design or are you suggesting on a way to discover how to write the query? I've been fiddling with this for quite some time. I have kind of diluted the issue a bit to try to get to the basics of writing the query to select the most recent date of each distinct trip part...
  12. K

    Designing MySQL Query for VBA Application

    Yes access vba using linked tables to mysql.
  13. K

    Designing MySQL Query for VBA Application

    Hello all, I'm having trouble creating a MySQL query that will pull the data that I need into a recordset. I've designed an application that tracks transit routes. There is table 'tripslog' that logs the route name [tripName], [startTime], [end time], [changeType] ('NEW', 'CHG', or 'DELT')...
  14. K

    Multiple Union on Local Excel Linked Tables

    June7, encasing the 2018ESY in brackets solved the problem. I wonder why it was necessary to bracket that table but not other tables? I guess you're right as well that it is not necessary to include the table prefix when listing the fields. Thanks for your quick help! I try not to come...
  15. K

    Multiple Union on Local Excel Linked Tables

    I have the following query to union three separate Excel File local linked tables into one query result. SELECT regtrips.[Name] As tripName, regtrips.[Schools] As schools, regtrips.[Number Stops] As numStops, regtrips.[Number Assigned] As numAssigned, regtrips.Duration as [duration]...
  16. K

    MySQL Query Not Working w/ VBA Recordset

    Thanks all! It was the wild card character (should have been * not %). What a stupid mistake! Really appreciate the extra sets of eyes!
  17. K

    MySQL Query Not Working w/ VBA Recordset

    Hello, I have an app that is tallying transit information for dynamic invoice generation. I have a table of 'trips,' which is essentially an audit table, showing all values for each tripName key over time. The important fields are tripName and lastUpdate. My program logic is like this...
  18. K

    Unable to Export Data to Excel (transferspreadsheet)

    Thank you, Doc Man, for the advice. Of course now that you mention it, that makes perfect sense. Both sides should be type converted to CSTR. Tried that and I am still getting the same generic error, [my database name] was unable to export the data. The file is created in the destination...
  19. K

    Unable to Export Data to Excel (transferspreadsheet)

    No. Like I said the school code in one of the tables is of type short text since in the base linked excel it is formatted that way. I was trying to cast it as a number so that I could do the comparison and return where they are not equal. I will play around a little more with this and...
  20. K

    Unable to Export Data to Excel (transferspreadsheet)

    Thank you everyone for your thought and responses. First suggestion, using CLNG on both sides of the criteria expression gives me a datasheet table of 2537 records but still gives the non coded error message, "[mydatabase] was unable to export the data." Regarding spaces in column names: Yes...
Top Bottom