Search results

  1. P

    Count records in the recordset?

    Thanks Can you ask one more question.... Can I manipulate the recordset as it were a table Say, can I use such sql statement: Select * from rst where rst!Name <> "Paul" Please advise Thanks
  2. P

    Count records in the recordset?

    i've got sql="Select Name, Transit from Table1 where Transit=" & varTransit Set rst = CurrentDb.OpenRecordset(sql1, dbOpenDynaset) Then I want to know how many records have been returned and assign that number to the variable.
  3. P

    Count records in the recordset?

    hi, how to count the number of records returned in the recordset? thanks
  4. P

    need help with subquery

    Hi, I have this subquery that does not work If anyone could take a look at that, I'd appreciate it SELECT NewQuery.Name1, NewQuery.TRANSIT, NewQuery.OP_STATUS, NewQuery.GL_INPUT_TYP FROM NewQuery where NewQuery.Name1= IIf([Count([NewQuery.Name1])=2,[Name1]<>"RBFG",[Name1]) Thanks
  5. P

    Need help with subquery

    Hi, Please help me to construct the subquery. I have a query that returns either one or two records. If query returns two records, one record will always have value "RB", and the second could have anything. Select NAME from transits where transit=5 NAME: RB ST I need to create a subquery...
  6. P

    String modification problem

    Hi, I have this problem. My list has a query as its source code. (For example: Select * from charges where AssetType = "Monitor";) You've noticed that there is a semi-colon that gets assigned at the end by Access 97 (there is not semi-colon at the end of the query's SQL in Access 2000) I...
  7. P

    Docmd.TransferSpreadsheet question

    Hi, The spreadsheet file I want to import has 2 sheets in it. Using this line, I only get the first sheet imported: DoCmd.TransferSpreadsheet acImport, , "Eroom", path, True How to import two sheets of into two different tables? Thanks.
  8. P

    Windows dialog box

    Hi, In order for me to import the excel file, I have to take the exact path from the user (which I do using a text box) txtPath.SetFocus path = txtPath.Text DoCmd.TransferSpreadsheet acImport, , "1", path, True But that is of course a headache for the user to type the whole path into the...
  9. P

    How to import excel file into Access table?

    Hello, I need to code the process of importing the excel file into the Access. The excel file name and location is known and therefore I should open a window so the user would choose the file to be improted himself. Please help. Thaks.
  10. P

    Error out of nowhere

    You were right ...it was the references problem I have installed SQL Server recently and after that TRIM$ function stopped working. So I had to refresh references used in my Access application. Now it works fine. Thank you very much for your help. I appreciate it a lot.
  11. P

    Error out of nowhere

    I have just tried TRIM......removed Configuraion table........it still gives the same error....
  12. P

    Error out of nowhere

    But i need to have Configuration table involved in this query. And this query worked fine before.....what is wrong with TRIM$?
  13. P

    Error out of nowhere

    Well, sorry....i just renamed BlackBerryRecord to Record........if you rename table back to BlackBerryRecord......then query will be good
  14. P

    Error out of nowhere

    ok, table and a query is in db attached
  15. P

    Error out of nowhere

    No, ... it is the same structure
  16. P

    Error out of nowhere

    No...but I've replaced the table that was used in the query with a table from another db....
  17. P

    Error out of nowhere

    I have this string assigned to the variable in the query: strFullName = Trim$([BlackBerryRecord].[LastName]) & ", " & [BlackBerryRecord].[FirstName] It worked find, but all of the sudden started given me the error FUNCTION ISN'T AVAILABLE IN EXPRESSIONS IN QUERY EXPRESSION '...
  18. P

    How to compare two tables?

    Hi I have two 70000 records tables and I need to compare them in order to find the differences and insert them into the thrid temporary table. E.g. Table 1 RecID Name 1 John 2 Maria 3 Mark 4 Tim Table2 RecID Name 1...
  19. P

    Can I rename the table from the vba code?

    Hi I am wondering if I could rename the table using vba code... Thanks
  20. P

    Need to rollback the SQL DELETE statement

    Hi, At some point in my program I do delete everything from one table and then copy records from another to that table again... DoCmd.RunSQL ("DELETE * FROM tblFIFROLL") DoCmd.RunSQL ("SELECT tblFIFROLL1.*, * INTO tblFIFROLL FROM tblFIFROLL1") If hit ESC while the second SQL statements...
Back
Top Bottom