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 SkipVought 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: *

  1. DTJeff

    Converting String to binary?

    Hi, I have a query which returns me some data like: ID StringData --------------------------- 0 11000111000010000111110101010001 1 01110001010101111000010101000111 How can I convert the StringData (which is actually binary only represented by String ones and zeros) into a...
  2. DTJeff

    How Do I Return True or False on query...

    Hi. Thanks for that - I looked at the CASE function and have also come up with the following: SELECT ID, 'Tbl1_Fld1'= CASE WHEN Tbl1.Field1 <> '' THEN '1' ELSE '0' 'Tbl1_Fld2'= CASE WHEN Tbl1.Field2 <> '' THEN '1' ELSE '0' 'Tbl2_Fld1'= CASE WHEN Tbl2.Field1 <> '' THEN '1' ELSE '0' END, FROM...
  3. DTJeff

    How Do I Return True or False on query...

    Hi. I've got a little head scratcher here which i'm hoping someone can help with. I have a table with several fields in it which cater for 60'000 records or so. The table is like this: ID Field1 Field2 ---------------------------- 0 'SomeText' 'SomeText' 1 ''...
  4. DTJeff

    Using Ado across DLL's...

    Hi, Thanks for the reply. I think i need to correct the diagram a little. This is what i'm looking to do: Application // || \\ Data DLL Forms and logic DLL(1) Forms and logic DLL(2) // SQL DB rather than...
  5. DTJeff

    Using Ado across DLL's...

    Hi. Im trying to create a application to connect to an SQL databse using ADO (so record locking can be achieved). This in itself is no problem except that I want the data connection and recordsets etc to be in a dll, and the code that uses it (including forms etc) to be another dll...
  6. DTJeff

    How to insert a DateTime exact on milliseconds (interbase)

    Hi, Not sure how to convert it back into a sensible date time, but datetime.now.ticks shows the number of milliseconds (100 nanosecond) intervals that have elapsed since 12:00 A.M., January 1, 0001. I'm sure someone here can tell you how to convert it back to a date time - in fact the app...
  7. DTJeff

    Multithread ping function

    Hi I've found a solution to the problem, not ideal but it works perfectly. I managed to work out how to call another program and read the output from it, and so can use the normal "ping" command. Public Function PingIPAddress(ByVal Destination As String) As Boolean Dim PingInfo...
  8. DTJeff

    Multithread ping function

    Hi all. I'm currently working on an app that requires the need to ping pc's to check that they are online. The app could pottentially have to check several hundred PC's, and so I've made it a multithreaded application. The problem I'm having is that the code that microsoft suggests for...
  9. DTJeff

    How Do I convert a string to an objects name?

    Ah - My fault! (doh!) I mistook the "reference &= "interfaces.dll"" line and didnt read it properly - sorry! (note to self - read information properly in future :) ) Thanks!
  10. DTJeff

    How Do I convert a string to an objects name?

    mmmm, That kind of works, but it means that I have to compile everything into a dll file, which would kind of negate the my main point. I really want the data held in a database, mainly so that an end user could add new items if they wanted to (and knew about wmi). I'm sure there must be a...
  11. DTJeff

    How Do I convert a string to an objects name?

    Hi, I'm currently writing a WMI application to retrieve information from a remote machine. As part of this, I'd quite like to create the "core" of the application without any of the WMI querys etc in the app, but rather have them called from an external database, so that extra functions could...
  12. DTJeff

    Problem with linking tables

    Just thought I had better say what the problem was in the end since I've now fixed it. It appears to be a bug in crystal. I found that if I created a "virtual table" (create a command that just returns the table), and then used this for the second reference it works fine! Cheers for all the...
  13. DTJeff

    Problem with linking tables

    Just tried this and I get the following results. With arrow going from tblAssetHistory to tblLocations_1 (alias) I get a "Query engine error" when I run the report. If I reverse the link, the report runs but doesnt have any data in it. Any other ideas?
  14. DTJeff

    Problem with linking tables

    Hi, OK, I think I've made a little progress. I can now get 99% of the report to work. The one bit I still cant get to work, is to display the location details (from tblLocations) for the location reported in tblAssetHistory.
  15. DTJeff

    Problem with linking tables

    Hi, I’m currently trying to develop a report using the version of crystal that comes with .Net 2003 (crystal 9?) and I am having some major problems getting the data displayed. I basically have three tables, one which holds details on Assets (e.g. a monitor) and there locations, one which...
  16. DTJeff

    How do i Convert drawing.image to drawing.icon

    That works a treat - thanks!
  17. DTJeff

    How do i Convert drawing.image to drawing.icon

    Hi, Does anyone know how I can place an image from an imagelist into a statusbar panel? I stuppidly assumed it was as simple as: Me.Statusbar.Icon = Me.Imagelist.Images(0) but it doesnt work, it gives me an error stating that it cant convert the types. Any help would be appreciated. Thanks.
  18. DTJeff

    Strange parameter results...

    Hi, Thanks for the help. I found another post on here that was unrelated but gave me inspiration :). I've changed the formula to this: ({TblAssets.Desc1} = "rexel" or {TblAssets.Desc1} = "hp") and (if {?Site} = "" then {TblLocations.Level5} like "*" else {TblLocations.Level5}={?Site})...
  19. DTJeff

    Strange parameter results...

    Hi, I'm building a report using parameters (passed to the report by VB.Net app) and I am getting odd results. This is my selection Formula: ({TblAssets.Desc1} = "rexel" or {TblAssets.Desc1} = "hp") and ({TblLocations.Level5} like{?Site}); if I pass say 'Newcastle' as ?site, then it works...
  20. DTJeff

    Crystal Parameters at runtime

    I have just found the answer to my own question after playing around abit. I needed to add: discreteVal = New CrystalDecisions.Shared.ParameterDiscreteValue and all works fine now.

Part and Inventory Search

Back
Top