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...
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
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...
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
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...
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"...
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...
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
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...
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...
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...
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...
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...
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
Dim iResp as Integer
iResp = MsgBox("Message", vbYesNo, "Title")
If iResp = vbYes Then
......
Else 'iResp = vbNo
......
End If
HTH,
JC
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...
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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.