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 TouchToneTommy 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 damotwani

  1. damotwani

    Exporting datagrid contents to Excel

    Hi, How can I export the contents of a datagrid to an excel spreadsheet? I don't have a clue how to do this. Thanks, Dheeraj
  2. damotwani

    Error importing CSV file to Access table using MS Text Driver

    Hi, I am using this code to import a .csv file selected by user ( the textbox Cmbhavfile holds the path for this file) to a table in Access but get an error: [Microsoft] [ODBC Text Driver] Syntax error in From Clause I don't understand what is wrong because the same code is running well on a...
  3. damotwani

    Importing CSV file to Access using TransferText in VB

    Hi, Thanks William and CClint for your insights! I am now able to import a csv file to a table in Access. But the code that William has provided above, only allows the csv file specified by strCSV to be imported to a new table in the Access database. However I need it to work a little...
  4. damotwani

    Importing CSV file to Access using TransferText in VB

    Hi, Thank you for responding william. I am new to VB and am not familiar with what you are talking about. I want to Import the CSV file to a table in Access. So I tried openning a connection to the database and using TransferText. What should I do to resolve this? Thanks, D
  5. damotwani

    Importing CSV file to Access using TransferText in VB

    Hi, I am trying to import a CSV file using TransferText in VB. I am getting this error: Run Time Error: Object Required when I try to execute this code: Private Sub Next_Click() Dim cnn As New ADODB.Connection 'Open the Connection cnn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data...
  6. damotwani

    Error when trying to use TransferDatabase in VB

    Hi, I am trying to import a dbase IV file into table in Access using the TransferDatabase command. I get this error: Run-time error: 91 Object Variable or With Block Variable not set. when I run this code: Private Sub Next_Click() Dim cnn As ADODB.Connection cnn.Open _...
  7. damotwani

    Importing dBase IV and Excel files in Access through VB

    AHA! So I don't get the "Object Required" error anymore. So you have star for that (I was so tired of seeing the same error... :) thanks!) But now we a different one. I get this error: Run-time error: 91 Object Variable or With Block Variable not set. when I run this code...
  8. damotwani

    Error Importing dBase IV file into Access

    Thanks! I shrunk the .dbf file name to less than 8 characters and it worked. I am just wondering, why does i have to be a max of 8 chars to be imported while excel doesn't? anyway, thanks a lot. D
  9. damotwani

    Importing dBase IV and Excel files in Access through VB

    Thanks for the reply Patrick. Here is what I am trying to do. The path of the dBase IV file which is to be imported is in a textbox named 'Cmbhavfile'. I am using the following code to import te file into a table in the Access Database: Private Sub Next_Click() Dim cnn As New ADODB.Connection...
  10. damotwani

    Error when using TransferDatabase

    and yes, I am using Access 2000, VB 6 and Windows XP. D
  11. damotwani

    Error when using TransferDatabase

    Hi, I am having trouble importing a dBase IV file into Access through VB. The path of the dBase file which is to be tranferred is in a text box. I am trying to use the TransferDatabase Command but I get the following error: Object required What should I do to resolve this? Thank you, Dheeraj
  12. damotwani

    Importing dBase IV and Excel files in Access through VB

    Hi, Thanks for the lead. But I get this error when I try to use TransferDatabase: Object Required what should I do? D
  13. damotwani

    Error Importing dBase IV file into Access

    Hi, Yes, the Import - Files of Type pick list includes dBase IV as a file type. I keep getting the same error, no matter what I try. I have Access 2000 with Windows XP. I hope that is not the problem. Thanks, D
  14. damotwani

    Error Importing dBase IV file into Access

    Hi, Thanks! How do I export from dBase to either a text or excel file (in code)? Thanks, D
  15. damotwani

    Importing dBase IV and Excel files in Access through VB

    Hi, How I import dBase IV and Excel files into Access? I will really appreciate it if someone can give me the code for this. Thanks, Dheeraj

Part and Inventory Search

Back
Top