I am just wondering if anyone else has experienced this.
I have a function called 'MkAccessDatabase(NewDatabaseName As String)' that does just what the name implies. This has been running smoothly for over a year. This morning, I got a compile error (ByRef Argument mismatch). This is only happening on a sub I have that calls the function twice. I had allowed windows to update itself on Friday.
My problem ended up being in my declaration of variables. It had been :
I had to give each it's own separate declaration line, and then it ran smoothly. Was there something flawed in how I was declaring the strings before? And if so, shouldn't it have crashed on me long before now?
Any idea why this is? I'm not sure what was updated, but I don't think any Access service pack was downloaded.
The problem is solved, I just would like to know if anyone has any insight into why it happened.
Thanks a lot,
Alex
Professor: But what about your superintelligence?
Gunther: When I had that there was too much pressure to use it. All I want out of life is to be a monkey of moderate intelligence who wears a suit. That's why I've decided to transfer to Business School.
Professor: NOOOOOOOOOOOO.
I have a function called 'MkAccessDatabase(NewDatabaseName As String)' that does just what the name implies. This has been running smoothly for over a year. This morning, I got a compile error (ByRef Argument mismatch). This is only happening on a sub I have that calls the function twice. I had allowed windows to update itself on Friday.
My problem ended up being in my declaration of variables. It had been :
Code:
Dim dbName, db2Name As String
I had to give each it's own separate declaration line, and then it ran smoothly. Was there something flawed in how I was declaring the strings before? And if so, shouldn't it have crashed on me long before now?
Any idea why this is? I'm not sure what was updated, but I don't think any Access service pack was downloaded.
The problem is solved, I just would like to know if anyone has any insight into why it happened.
Thanks a lot,
Alex
Professor: But what about your superintelligence?
Gunther: When I had that there was too much pressure to use it. All I want out of life is to be a monkey of moderate intelligence who wears a suit. That's why I've decided to transfer to Business School.
Professor: NOOOOOOOOOOOO.