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 Chriss Miller 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: *

  • Users: woodyinoz
  • Content: Threads
  • Order by date
  1. woodyinoz

    Using a finds results in an if statement

    Hi all, I've got the following code which performs a find on a worksheet looking for a value held in the variable strCont: Cells.Find(What:=(strCont), After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _...
  2. woodyinoz

    Inserting Records into SQL Server

    Hi all, I have the following code which should take the information held in column A and input it into a sql server table: Sub InsertRecords() Dim DB As DAO.Database Dim stList As String Dim R As Range Set DB = DBEngine.OpenDatabase("SQLSvr", _ dbDriverNoPrompt, True, _...
  3. woodyinoz

    Using clean on a single column not a whole worksheet

    Hi all, I'm looking to use the clean command on a single column rather than a whole worksheet. Can I do this? I've got the following code so far: [Code] Sub cleanup() Dim TheCell As Range For Each TheCell In ActiveSheet.UsedRange With TheCell If .HasFormula = False Then...
  4. woodyinoz

    Transferring data from Excel to SQL Server using VBA

    Hi all, I'm looking to update a table in SQL Server with information held in an Excel spreadsheet. I want to be able to do this by clicking a button in Excel. I don't want the user to have to go into SQL Server. I know it may be possible by calling a DTS package but do I need SQL installed on...
  5. woodyinoz

    Using a data relationship

    Hi all, I have a dataset called dsStage. This dataset contains two tables - Stage and StageSub. I have created a relationship between the two... This is called relstage. I used the following code to create the relationship: Dim relStage As New DataRelation("StageRel", _...
  6. woodyinoz

    Visual Studio .NET 2003 with .Net Framework 2.0

    Hi all, Can anyone tell me if I can use VS.NET 2003 with the .NET Framework 2.0??? I want to use the datagridviewer that comes with 2.0 with VS.NET 2003..... Can this be done and if so how? Thanks in advance.
  7. woodyinoz

    Removing letters from a string

    Hi all, I've got a column in Excel with the following data in it: 895001A 78390 783429 34224 3345G 435764F Etc... I need to remove the final character if it is a letter. They can be different lengths and some values may not have a letter at all but if a letter is in the string it will always...
  8. woodyinoz

    Query failing

    Hi all, I've got the following query running in Excel. With ActiveSheet.QueryTables.Add(Connection:=Array(Array( _ "ODBC;DSN=SQLSvr;Description=Connection to SQL Server (SQLSVR);UID=sa;PWD=password;APP=Microsoft Office 2003;WSID=SWOODWARD;DATABASE=FMDB;Networ" _ )...
  9. woodyinoz

    Add a date into a saveas filename

    Hi all, I currently use the code below to save an Excel spreadsheet as a csv. ActiveWorkbook.SaveAs Filename:= _ "J:\Projects\Great Plains\POHDR.csv", FileFormat:=xlCSV, _ CreateBackup:=False However, a user now requires the file to be saved with todays date added onto the end of...
  10. woodyinoz

    View Issue?

    Hi all, I'm trying to view a report using ePortfolio Lite over our intranet. The report uses a view that I have created in SQL Server 2000. When I run the report locally using Crystal Reports 9 the report runs fine. However, when running the report using ePortfolio I get as far as the...
  11. woodyinoz

    Enterinf >, < in a report parameter

    Hi all, I have a decimal field that I would like the user to be able to query using a report parameter. I want them to be able to add values such as: >10000 <10000 10000 Can this be done? I want to do this using one parameter rather than setting up 3, one for each possibility (i.e. greater...
  12. woodyinoz

    Change text to a number

    Hi all, For the purposes of sorting, I want to change a text field into a number field so that 10000 will come out after 12000 in ascending order. How can I do this? I've tried just changing the field properties but that, obviously, doesn't work.... Any ideas? Thanks in advance, Woody
  13. woodyinoz

    Background Refersh Error

    Hi all, I'm trying to run a query that uses two date parameters from user input. This is my code for the query: With ActiveSheet.QueryTables.Add(Connection:=Array(Array( _ "ODBC;DSN=SQLSvr;Description=Connection to SQL Server (SQLSVR1);APP=Microsoft Office...
  14. woodyinoz

    Placing Dates in a Query

    Hi all, I am looking to fill in the dates in the following query by taking values entered into a text box. My query is: With ActiveSheet.QueryTables.Add(Connection:=Array(Array( _ "ODBC;DSN=SQLSvr;Description=Connection to SQL Server (SQLSVR1);APP=Microsoft Office...
  15. woodyinoz

    Sace as CSV date problem

    Hi all, I'm currently running a simple script which saves the current Excel worksheet as a csv file. Here is the code: ActiveWorkbook.SaveAs Filename:= _ "J:\Projects\Header.csv", FileFormat:=xlCSV, _ CreateBackup:=False I am getting a problem with this in that I require all...
  16. woodyinoz

    Change Date Format

    Hi all, How do I do the following in VBA for Excel date formats? I have a cell with the date value 25/11/2005 However, I want this cell to ignore the 25 and simply say Nov2005. Can this be done and if so how? Thanks in advance. Woody.
  17. woodyinoz

    Change currency and date settings

    Hi all, I'm from the UK and therefore want my currencies and dates in UK format. However, at present all currencies are coming out as UZ $ and all dates are also US format. I have changed the Micrsoft Office Language settings to UK and my computers reginal settings are also UK... What else do...
  18. woodyinoz

    One Parameter, Two Fields

    Hi all, Is it possible for me to use one parameter to actually filter two fields? If so how?! Thanks Steve
  19. woodyinoz

    Listing values along with nulls

    Hi all, I'm relatively new to Reporting Services so bare with me! I am trying to us a parameter upon my report. This parameter does not have to be filled in by the user. In the field that the parameter is running upon there are both NULLS and values. When the user enters nothing into the...
  20. woodyinoz

    Remove Carriage return and Line Feed

    Hi all, I am pulling some data out of SQL Server and into Excel but I am getting some annoying Carriage Returns and Lin Feeds in some of my fields.... I know that Carriage Return is Chr(13) and that Line Feed is Chr(10) but how can I write some code to get rid of these throughout my...

Part and Inventory Search

Back
Top