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!

Search results for query: *

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

    Access denied to folder using impersonation on IIS 6

    I’m using impersonation on my web application in order to identify who is currently logged onto the client. For example “John Smith”. This side of things works fine as the web page lists the name and email address of whoever is logged onto the machine. My web.config file contains…...
  2. toon10

    getting 1 line from inner join returning 4 lines

    Hi I’m using this SQL query in 2005. USE [MIS] SELECT DasCompQty, DarQty, DarRWC, DasFlnRate / 60 * DarRwTime * DarQty AS FaultCost FROM dbo.AssemblyOperation AS [AO] INNER JOIN dbo.[Assembly] AS [A] ON AO.AopAssNo = A.AssPartNo INNER JOIN dbo.ListFlowline AS [LF] ON A.AssFlnId = LF.FlnId...
  3. toon10

    Alternative "smarter" datagrid control

    Hi I’m using a treeview control which lists staff members from my database. On the node_click event, I’m populating a datagrid with training record information from a table based on the staff member selected from the treeview. I’m using ADO code to populate a recordset and then setting the...
  4. toon10

    comparing 2 recordsets to make a 3rd

    Hi I was wondering what the logic to use for comparing 2 recordsets. I have a RSCourseAttendedByStaff recordset (which is a list of staff members who have done a specific training course) My other recordset, RSAllStaff, is a full list of staff members. I want to compare the two and find out...
  5. toon10

    inserting the results of a datatable into a database table

    Hi I have a datatable which I want to write to a table in my database. Dim varSQL As String varSQL = ("SELECT * FROM [tblCost] WHERE [Part Number] = '" & txtPartNumber.Text & "' ORDER BY [Part Number]") Try Dim AccessCommandPartRetrieve As New...
  6. toon10

    binding datagrid to access table

    Hi I’m trying to create a datagrid based on results from an Access database. I have achieved this using SQL but my new project uses Access. Basically, the user selects a part number from the main form and then clicks on a results button. A new form appears and a datagrid is dynamically built...
  7. toon10

    FileSystemWatcher

    Does anyone know how to use the FileSystemWatcher? I want to watch a folder on the network. If a named text file gets copied into the folder, I want to automatically run an import function I have written and then after the import has completed, copy the text file into another folder to clear...
  8. toon10

    import delimited text file into Access via VB.NET

    I'm trying to rewrite an old VB6 application in VB.NET. My old VB6 routine used to detect when a text file was placed in a folder and then it would import that delimited text file into an Access database. The old way of doing this doesn't work. I thought the way I would handle this is to use a...
  9. toon10

    connecting to security table in access

    I’m trying to create a simple login screen for my application in VB.NET. I’ve recently come over from VB 6! I have a login form which accepts a username and password. I want to lookup an Access table called Security to check that the username and password is valid. If it is then the main...
  10. toon10

    SQL sort order.

    (I initially had this on the SQL forumns but they are telling me I need to post here as it's SQL through VB6) I'm running the following query through the visual basic 6 data designer against a SQL 2005 database. SELECT `Part No`, SUM(Val - `Cost Of Sale`) AS Margin, Description, `Product...
  11. toon10

    convert to numeric

    I'm running the following query through the visual basic 6 data designer against a SQL 2005 database. SELECT `Part No`, SUM(Val - `Cost Of Sale`) AS Margin, Description, `Product Group` FROM tblSales WHERE (`Invoice Date` BETWEEN (# 01 / 01 / 2006 #) AND (# 01 / 02 / 2007 #)) GROUP BY...
  12. toon10

    Restoring a user database from a server folder in SQL 2005

    Hi I’m new to SQL so please bear with me! I know how to create a backup device called ASSETMAN and then make a backup of a database manually. I can then restore using the following. “USE master RESTORE DATABASE LDVTest FROM ASSETMAN WITH RECOVERY” This is OK for a one off backup. I have...
  13. toon10

    Number format issue in data designer

    I have the following SQL command which I’ve written in the Visual Basic 6 data designer. It’s looking at a SQL 2005 database. SELECT viewInjectorPipe1.S1TestDate, SUM(viewInjectorPipe1.[CountOfInjector Pipe Moved] / viewInjectorPipe2.CountOfSerNo) AS InjPipe FROM viewInjectorPipe1 INNER JOIN...
  14. toon10

    rename files in folder from csv file

    Hi I have a .CSV file with an existing name column and a new name column. E.G. 3145.pdf, Item 3145.pdf I want to look at the first column (3145.pdf) find that file in a given directory (c:\temp) and then rename it to the second column (Item 3145.pdf) and then move to the next column until...
  15. toon10

    date help on a data command

    Hi I have a Visual Basic 6 application which looks at a SQL Server 2005 back end database. I have setup a command in the data designer which looks like this: SELECT S1TestDate, AVG(Crossover) AS AvgOfCrossover1 FROM LDVTestRec WHERE (Crossover > 0) AND (Crossover < 4.7) GROUP BY S1TestDate...
  16. toon10

    DataGrid search using combo box

    Hi I have a datagrid which displays a lot of data from an SQL table. The first row is a part number. I have a combo box with the relevant part numbers listed. All I want to do is select a part number from the combo box and have the datagrid select the row where the part number matches. I...
  17. toon10

    Data Report zoom level

    Hi I have a data report in my VB6 app which I open up through code. This works fine but the report opens up with a zoom level of 100%. I want to be able to open the report to 75% or maybe "fit to page" automatically as the bottom of the report is hidden under 100% zoom. Is there an easy way...
  18. toon10

    excel object (worksheet)

    Hi I have a routine which I want to open an existing spreadsheet, switch to a specific named worksheet and then paste the contents of a recordset into the sheet. The recordset has been created successfully but I'm having trouble switching to a specific sheet. It opens the correct spreadhseet...
  19. toon10

    recordset issue

    I have a very odd problem with some SQL. If I use the following code: “SQL2 = "SELECT Operations.OpID, OpDetail.OpNoID, OpDetail.SequenceNo From Operations, OpDetail WHERE Operations.OpID = OpDetail.OpNoID AND (Operations.PartNoID = '" & varPartNo & "') ORDER BY OpDetail.OpNoID...
  20. toon10

    using IF within SQL?

    Hi I have an SQL statement: SQL = “SELECT DISTINCT `Part No`, Description, `Invoice No`, `Planning Element`, `Invoice Line`, `Invoice Date`, `Invoice Creator`, `QTY Invoiced`, `Value (GBP)`, `Cost Of Sale`, `Currency Code`, `Customer Group`, Region, `Sold to`, `Delivery...

Part and Inventory Search

Back
Top