Instead of looping through character by character you could define a VBA function as follows:
Public Function HasLowerCase(strTest As String) As String
If (0 = InStr(1, strTest, UCase(strTest), vbBinaryCompare)) Then
HasLowerCase = "Y"
Else
HasLowerCase = "N"
End If...
It might be worth looking at temporary work tables. I will use pseudocode rather than pure SQL to illustrate the idea.
INSERT INTO TEMP1 (fields F1,F2) FROM TEST unique combinations where K is 1 or 2
INSERT INTO TEMP2 (fields F1, F2, F3) FROM TEST, TEMP1 unique combinations for F1, F2, and the...
I have some VBA that reformats a workbook of data downloaded from another system. There is only formatted data - no formulae.
For two of my users the code was running very slowly - typically the task was taking a minute per sheet where I expected under 5 seconds per sheet. All users have...
In Excel go to a code window (Alt F11) and select the Object browser.
Change the library dropdown to Excel and in the lower window click on application. To the right you will see Run. Right click on Run and select Help.
This is a long shot. If there were control characters (like line feeds) in the backend data then just possibly MSQuery and Excel might see them differently.
Seems unlikely but in the absence of other ideas ...
This can easily be achieved by writing a simple VBA user defined function. For example, thisworkbook.CustomDocumentProperties("owner") would return the owner custom property.
If you need help on VBA repost in VBA Visual Basic for Applications (Microsoft).
Why not use an Excel Style - say called InputData - that has protection turned off and has shading turned on. Just format the data entry cells with that style.
An anchor simply shows which Word paragraph an object such as a picture or textbox is attached to. The only way to get rid of the anchor is to get rid of the object or to stop the object from floating by making it in-line.
Word HAS to use a printer driver to render a page - clearly the page layout must change according to the printer settings - for example the difference between UK A4 paper and US legal. Even with the same paper size the number of characters that fit on a particular line can change if printer...
Thanks for the star.
The Access database engine is limited in the complexity of the queries it can handle. Sometimes a little lateral thinking is required to work within its limits. Mark's suggestion is another example - although the IN and EXISTS are logically equivalent one may be more...
Some ideas:
Where is the data - dbo_ usually comes from SQL server which handles complex queries better. If it is on a SQL Server you could use a Pass through query to get the server to do the work. Otherwise Access has to pull all the data back from the server so that it can test your...
Excel help defines the format of the SUM function as SUM(number1, number2, ...) where the numbers go from 1 to 30. That is probably why having 102 arguments fails.
Normally we are not limited to 30 numbers simply because each argument can be a range.
Perhaps we use SUM so often we take it for...
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.