i am adding data from vba excel using adodb into a mysql database
everything works great but is slow. the entire process takes about 5 seconds.
i believe the reason it is slow is because i am filtering it:
Dim rowid_batchinfo As String
rs.Filter = "datapath='" + dpath + "' and analystname='" + aname + "' and reportname='" + rname + "'...
i asked the question of whether an index would help me:
http://stackoverflow.com/questions/2961834/should-i-be-creating-an-index-for-this
i understand that since i am adding code every time in this procedure, i would need to re-index. in this case is it even worth it to index every time?
...
I've been asked to convert several hundred MS Word 2002 Templates (on the PC) to work on the Macintosh. I have to evaluate whether the Word Templates can be run in iWork Pages and Microsoft Word for the Mac. The biggest issues that I've found thus far are that I'm unable to convert the following -
Macros
WordBasic code
Visual Basic
H...
I am converting a large project in VB.NET that is using Option Strict Off into Option Strict On
Naturally I am running into the same compilation error over and over.
Strict On does not allow implicit conversion from Object to String/Integer/Double
Is it possible to to access the compilation errors with a macro and automatically append...
The code below doesn't behave as I would expect.
; given a function name, its args and body, create 2 versions:
; i.e., (double-it foo []) should create 2 functions: foo and foo*
(defmacro double-it
[fname args & body]
`(defn ~fname ~args ~@body)
`(defn ~(symbol (str fname "*")) ~args ~@body))
The code abo...
Is this a macro defintion for a class or what exactly is it?
#define EXCEPTIONCLASS_IMPLEMENTATION(name, base, string) : public base \
{ \
public: \
name() : base(string) {} ...
i don't know if this is the standard way to do things, but i will need to take a text file and have it imported into access.
i need access to be always looking (or every minute or so) in a folder, importing the text file, and then automatically printing a report
is this possible?
how do i have access look in a folder every couple of m...
Hi everybody.
I'm working on a small macro to send mail from excel 2007 using my Lotus Notes session.
The sending mail part is working fine.
Now I need to send in the body part, a part of a stylesheet (for instance the area from A1:B20). This area has colors, bold font.
To send my email here is the code:
Set oSess = CreateObject("Notes...
Cell C1 contains a date.Macro to check the date in C1, if the same date is mentioned in row 3 then copy all matching date data beneath it from D6 downwards, paste to sheet2, cell b3.Also copy a6 column downwards to sheet2, cell a3.
...
I have a bunch of VBA code that I'd like to throw in a macro.
Basically I call a bunch of subs that update the page.
It looks something like this:
Call Update1("Work", strConn)
Call Update2("Work", strConn)
Call Update3("Work", strConn)
where Update1, Update2, and update3 are all in the same sheet with the form
Public Sub Update1(s...
I have a whole bunch of tables that were formatted weird, because when a bunch of people make tables out of tabs, one cannot expect the tabbing to be consistent on all of them.
For example... I have this table: 2 cols by 11 rows... but I would like a macro that didnt care about the number of columns and rows
space space space **column ...
Im trying to write a few simple macros to simplify the task of setting and clearing bits which should be a simple task however I cant seem to get them to work correctly.
#define SET_BIT(p,n) ((p) |= (1 << (n)))
#define CLR_BIT(p,n) ((p) &= (~(1) << (n)))
...
I need to write such a define in C/C++
#define scanf( fscanf(inf,
in order to replace each scanf( with fscanf(inf, literary
But I do not know how...
Thanks
...
void main()
{
int xyz = 123; // original value
{ // code block starts
xyz++;
if(xyz < 1000)
xyz = 1;
} // code block ends
int original_value = xyz; // should be 123
}
void main()
{
int xyz = 123; // original value
MACRO_NAME(xyz = 123) // the macro takes the code code that should be ex...
is it possible to programmatically have access open a certain csv file and read it into a datasheet and set parameters like what time of delimiter, TEXT QUALIFIER etc, including all the steps that one takes to manually import a csv file into a table?
...
b'h
i will be programmatically importing a text file into a table. i have saved the import steps. i will use this:
DoCmd.TransferText(TransferType, SpecificationName, TableName, FileName, HasFieldNames, HTMLTableName, CodePage)
to do the import.
this is what SpecificationName means:
Specification Name The specification name for the...
I would like to write a custom OpenOffice function that runs a shell command and puts the result into the cell from which it was invoked.
I have a basic macro working, but I can't find a way to capture the command's output.
Function MyTest( c1 )
MyTest = Shell("bash -c "" echo hello "" ")
End Function
The above always returns 0....
I often see __WIN32, WIN32 or __WIN32__. I assume that this depends on the used preprocessor (either one from visual studio, or gcc etc).
Do I now have to check first for os and then for the used compiler? We are using here G++ 4.4.x, Visual Studio 2008 and Xcode (which I assume is a gcc again) and ATM we are using just __WIN32__, __APP...
Hello, given the following structure:
struct nmslist_elem_s {
nmptr data;
struct nmslist_elem_s *next;
};
typedef struct nmslist_elem_s nmslist_elem;
Where:
typedef void* nmptr;
Is it possible to write a MACRO that retrieves the data from the element and cast it to the right type:
MACRO(type, element) that expands to *((ty...
Hi, I'm a newbie, but things aren't consistently working for me in the XCode editor.
I'll be in a method, and type "For" (without the quotes of course).
What's supposed to happen is the entire For structure appears for me to fill in, right?
Well, the For gets highlighted to show it's a key word, but the snippet doesn't show up.
At that ...