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 strongm 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. Mongooses

    Sort dynamically filled combo box

    ps40life, In order to fill the combo box with sorted values you will have to sort them. Since I can't imagine an astronomical number of Reports, I suggest you use a bubble sort. So read all the Report names into an array, sort the array and then create a string with all the names in order...
  2. Mongooses

    Make a word bold in a unbound box

    In the design mode of your form, select appropriate text box and then click properties button on the toolbar. In the properties dialog box select the "Format" tab. In the format tab there will be a "Font weight" choice where you can select the appearance to be BOLD. HTH, jc
  3. Mongooses

    Application Icon Creation

    You can set the application ICON in the TOOLS->STARTUP menu then you will see an application icon text box. The real issue in my opinion is the size of your .bmp Icons are usually 16x16 pixels for small icons and 32x32 for standard icons. If you create a bitmap of either size and then rename...
  4. Mongooses

    create object function

    Go to Project->References and see if you have referenced the libraries for the other objects (i.e. if you want to use Excel 2000 place a check next Microsoft Excel 9.0 Object Library) HTH, JC
  5. Mongooses

    Showing Day for Date

    Heck - didn't know about the WeekDayName function - All you really need to do is place a text box on the form and in the data->control source property enter =WeekDayName(Weekday([YOUR_DATEFIELD_NAME)) Just replace YOUR_DATEFIELD_NAME with the name of the date field on your form and that's...
  6. Mongooses

    Showing Day for Date

    Use the WeekDay function. Pass the function the date and it will return an integer where 1 is Sunday, 2 Monday, 3 Tuesday ... Then just display the weekday based on the value returned. i.e. Select Case Weekday(yourDate) Case 1 TextBox.Text = "Sunday&quot...
  7. Mongooses

    Turning column stored data into one row

    You can do it quite easily by opening a recordset and order by Item. Once you have an ordered recorset - you loop through the data while current item = previous item and concatenate the option field into a temp. something like: prevItem = rs.Fields("Item").Value rs.MoveNext Do...
  8. Mongooses

    Oracle Examples only build with cl dos compiler?

    Not sure now but have a feeling that the -D, which is a precompiler directive, is the culprit. So you might want to try going to Project->Settings click on the C++ tab and in the Undefined symbols text field type _DLL _MT HTH, JC
  9. Mongooses

    Oracle Examples only build with cl dos compiler?

    Ok - there shouldn't be any problem building the project from the IDE. First, go to Project->Settings and click on the Link tab. In the Object/Library modules text field add to the end of the list: oci.lib msvcrt.lib (separated by a space only), then go to Tools->Options and select the...
  10. Mongooses

    Oracle Examples only build with cl dos compiler?

    If it will compile using the MS Compiler on the command line you should be able to get it to compile from the IDE. Are you compiling directly from the command line or using a batch file? If you are compiling from a batch file then look at the link command and make sure you have also included...
  11. Mongooses

    Really quick question: Templates

    I am merely a C++ hack - but I beleive if you wanted to expose only the .h file so it in essence defines the interface to your methods, and the user would only see the .h file and not the implementation then you could create a .lib file with the implementation and then just include the .lib in...
  12. Mongooses

    Has anybody used nested classes?

    A nested class is a class with in a class. Where you declare the nested class (i.e. Private or Public) determines how you can instantiate the class object. Consider using a nested class if an object is only needed by the class. A simple example would be a Student class with a nested class...
  13. Mongooses

    Really quick question: Templates

    The reason it won't compile is because your main.cpp only knows about DSRGB24.h. The header file has no information about the DSRGB24.cpp file and therefore your methods are not exposed to it. The easiest solution is to include the DSRGB24.cpp instead of the DSRGB24.h. You might also want to...
  14. Mongooses

    NotInList for combo box not working

    Are you using Access 2k? If so then you will need to go to the VB editor click on Tools->References and check the Microsoft DAO 3.61 Object Library. Or else you can rewrite the code for ADO. Also if the table is in the database you are working with then Set db = CurrentDb HTH, JC
  15. Mongooses

    NotInList for combo box not working

    Instead of rst!occName = NewData try rst.Fields("occName") = NewData HTH, JC
  16. Mongooses

    Need help with vbyesno

    Dim iResp as Integer iResp = MsgBox("Message", vbYesNo, "Title") If iResp = vbYes Then ...... Else 'iResp = vbNo ...... End If HTH, JC
  17. Mongooses

    Copy Multiple files from one Dir into another

    And yet another alternative is to create a file collections and then use For Each to enumerate the files Dim fso, folder, phile, fileCollection Dim szTargetFolder as String, szDestination as String Dim szTemp as string szTargetFolder ="TargetDir" szDestination = "Destination...
  18. Mongooses

    loss of accuracy using fabs

    How are you determining the number is zero? What you have written will assign 1.0e-09 to number1 not zero. Maybe you are losing accuracy in your display. HTH, JC
  19. Mongooses

    Database name on title bar

    To change the name displayed in the title bar - open the report/form in desing view -> view the report/form properties and change the Caption property to the name you want displayed. HTH, JC
  20. Mongooses

    Launching notepad from VC++

    take a look at _exec function in MSDN might be what you are looking for. HTH, JC

Part and Inventory Search

Back
Top