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: Larree
  • Content: Threads
  • Order by date
  1. Larree

    Problem with the m_strFilter

    Hi all, I am using ODBC for my program. I want to specify a filter for the records in my MS access database. When my code for performing teh filter is as follows: m_ParticipantSet->m_strFilter = "PartName = '" + dlg.m_PartName + "'&quot...
  2. Larree

    Retrieveing data from Dalog box

    Dear all, I m trying to retrieve a value Timing1 from a dialog box named CTimeDlg to my CMainFrame. The code that I use is as follows: CTimeDlg Timedlg; CTime STime = Timedlg.Timing1; CTime Now = CTime::GetCurentTime(); CTimeSpan Interval = Now - STime; CString Timing =...
  3. Larree

    Converting CString to CTime

    Dear all, I have declared a CTime object as CTime Timing. I believe this is timing in seconds. I later convert it to a CString object using Timing.format("%H:%M:%S") This gives the timing in terms of Hours : Minutes : Seconds I then store it in a daatbase. I wish to extract this...
  4. Larree

    Problem of redundant records

    Hi all, I am facing a problem for my program. Basically I intend to update my database each time an event occurs. However I want to eliminate redundant records as in if a particular identity is already in my record for today, it must not appear again. Ut is ok if it appears tomorrow since the...
  5. Larree

    while Loop problem

    Hi all, I encountered the following problem. Code looks ok but and no errors when I compile. But when I activate the function an error is generated saying that attempt to update or delete failed. The code is as follows: Timing1 = CTime::GetCurrentTime(); if( m_pCapturedResults.IsOpen() ==...
  6. Larree

    How to fill a combobox with data from my database?

    Hi all, I am facing a problem. How do u fill a combobox with data from my database? I am looking to fill all the participants name in a race into a combo box. Then when I select the participant's name, all his particulars will also be displayed. I am using dialog for this. So do I put the code...
  7. Larree

    Displaying contents of database in a combobox of a dialog box

    Hi, I am a relatively new MFC programmer and I have the following problem. In adding a second recordset to my dialog box, I want to add a combo box to list the names of all that is contained in my database. I used the following code m_pSet = &GetDocument()->m_viewrecordSet; m_pSet->m_pDatabase...
  8. Larree

    How to open dialog box from a single document?

    Hi, I am a new user in Visual C++ 6.0.Using MFC, I created a single document application. From the application I wish to click a button to open a dialog box. The following is the code I used: void CTest1Doc::OnButton1() { TestDlg testdlg; int result = testdlg.DoModal(): } It seems that it...

Part and Inventory Search

Back
Top