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 wOOdy-Soft 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. MichaelaLee

    VS.NET Help not working

    Hi Everyone, I've been having a little propblem lately that just got worse. I was having a problem with the help coming up in the develpment enviroment. It would say "downloading..." while it was looking, then it display the "Page not found" error page, but If I did it again it always came up...
  2. MichaelaLee

    How set date field to NULL in code

    Hi everyone. I wanted to know the best way to set a datetime field to null in VB code. We are using SQL Server. Take the following code Set mCommand = New ADODB.Command mCommand.CommandType = adCmdStoredProc mCommand.CommandText = "nf_UpdateTermination_Import" mCommand.ActiveConnection =...
  3. MichaelaLee

    Finding Dupes across multiple fields

    Hi Everyone, I have a need to find dupes across multiple fields in a few tables and the queries I've used so far are not working for me. Here are exapmle of fields in the table: PatientID AdmissionDate Name Relationship Age How would I go about finding dupes across the first 4 fields. Thanks...
  4. MichaelaLee

    two subqueiries in main query

    Hi All, I have the following tables: Patients: PatientId Name DoctorId TheripistId ect... DoctorLookUp KeyId DoctorName The doctor lookup table contains all doctors and Theripist in one table. Now I need to run a query that will display the name of the Doctor and Theripist when I...
  5. MichaelaLee

    A Lookup value for saving data

    Hi Everyone, Was not sure how to name the subject, but here is what I need to do. I have the followinf stored proc: INSERT INTO BillingSupport ( PatientId, ServiceDate, Diagnostic, Program, AttendedGroup ) SELECT ATTENDANCE.PatientID, ATTENDANCE.AttendDate, ATTENDANCE.Diagnostic...
  6. MichaelaLee

    Current Recordset does not support updating

    Hi everyone. I'm using SQL Server 2000, and I'm having a slight problem with a recordset from a stored procedure. When the query is first opened all settings indicate that the recordset is editable. As soon as I try to add/Modify a record I get the following error: Current Recordset does not...
  7. MichaelaLee

    Comparing Dates, but only the Month/Year parts.

    Hi Everyone, I'm working on a UDF that will tell me if a date falls within a Date range. The catch is I can't look at the Day part of the date as a comparision. In other words, If I have the following: LookUpDate = 6/25/2004 StartDate = 2/1/2004 EndDate = 2/5/2005 The UDF should only look at...
  8. MichaelaLee

    Using User-Defined Column name in where clause

    Hi Everyone, I'm using SQL Server 2000 and have a slight problem. In my query I use a User-Defined function to get the column value as follows: SELECT UserID, Max(Termination.DOA) AS LastAdmission, PATIENTS.LastName + ', ' + PATIENTS.FirstName as Name, DateAdd(m, 3, Max(Termination.DOA)) as...
  9. MichaelaLee

    Return a Value from a Stored Procedure

    Hi Everyone, I need to get a new Id from a stored procedure that just added a new record. How can I go about getting the returned value back. After this insert is done I need to use that ID for other procs in my procedure. Thanks Here is an example of what I doing without returning a value...
  10. MichaelaLee

    Error converting data type datetime to smalldatetime

    Hi Everyone, I'm having a little problem adding a record that contains 3 smalldatatime fields. I'm getting the following error: Error converting data type datetime to smalldatetime. Here is the code: Set mCommand = New ADODB.Command mCommand.CommandType = adCmdStoredProc...
  11. MichaelaLee

    No resultset return problem

    Hi All, I'm having a slight problem trying to get a resultset back from an Access 2000 database. I have the following code: SQL Query: PARAMETERS [lStudentId] Long; SELECT StudentCourses.CourseID, Courses.CourseTitle, StudentCourses.StudentID, StudentCourses.StartDate...
  12. MichaelaLee

    Getting Program Icon from exe

    Hi Everyone, I would like to know how to get the Program Icon from an exe. My manager asked me to build a little app that will launch other apps like Notepad along with other apps. What I want to do is assign the program Icon to the Picture property of a command button. Thanks for any info that...
  13. MichaelaLee

    Convert int to Formated String

    Hi Everyone, I have a need to convert an int field to a string. For example, if the int field contains 39, I need to the output to look like "NF00039". Actually what I'm doing is using a support table to get the next Key value and that returns an Int. Then I need to take that value and convert...
  14. MichaelaLee

    Help with SubQueries

    Hi All, I have recently converted a access database to SQL Server 2000. Everything has been going well, but I can't get one query I need to work. I suspect I need to do it another way. I hope You all can help. Here is what I'm trying to do. I have 3 queries, the top level one uses the other two...
  15. MichaelaLee

    Help with Inner Joins

    Hi Everyone, I'm having a slight problem with a query I'm inporting from MS Access to SQL Server. One problem is that when I run the query in SQL Query Analyzer I get no results, but is I run it in Access with the tables attached (dbo_ in the query) I get the results I expect. Can you look at...
  16. MichaelaLee

    VSView and alternate row colors

    Hi I have a need to make every other row Gray to make it easier for the users to read this report. I figured I would have to use the OnPrint or OnFormat event/Property to do thisd, but not sure how. Any ideas. Thanks. Michael
  17. MichaelaLee

    Authentication Failed

    Hi Everyone, I've searched the forums here and have not found a solution that works yet. I hope you all can help. I'm working with Crystal Reports 9 and "SQL Server 2000". I'm getting the following error when trying to load a report in VB: Error from the Crystal Report viewer. Logon Failed...
  18. MichaelaLee

    Capture input/output text from a window

    Hi Everyone, I have a challenge for you all. I was wondering if there are any articles/code/samples of getting the text inout and output from in outside window. I beleive this will have to be done with windows api. I have started to research this, but wanted to get your opitions. I'm looking at...
  19. MichaelaLee

    Why is SQL Server return a -1 for Recordcount

    Hi Everyone. I know that if the recordcount is -1, it suppose to mean that this property is not supported. I'm using Microsoft SQL Server 2000 - 8.00.760 (Build 2195: Service Pack 3). Here is the code: Set mCommand = New ADODB.Command mCommand.CommandType = adCmdStoredProc...
  20. MichaelaLee

    VB6 IDE will not load any forms

    Hi Everyone, Today I installed an app that also installed the MSDE and every since then, I have not been able to load up any forms from any project. Actually, if I start a new project, and open an empty form, it seems to be ok. But once I start adding controls, I get the following error: The...

Part and Inventory Search

Back
Top