For the moment i don't know ,but are there any problem with the numbers of the records?
For the moment i don't know ,but are there any problem with the numbers of the records?
Only look-up speed when you have thousands of them. I've used around 8,000 on one sheet and Excel had no problem with that.
Semper in excretia sumus; solum profundum variat.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Hi xld
I appreciate that when you instantiate an object it takes up memory, but didn't realise that selecting a reference had any impact on memory until the object was used.But you should never auto-instantiate objects.
Semper in excretia sumus; solum profundum variat.
You must learn the coding starting from the SolidWorks data base you use.
What is the SQL language (Code) the SolidWorks DB engine understands? Oracle SQL: MariaDB SQl, PostGreSQL SQL, FileMaker SQL, Or even Solidworks SQL
Then learn the Language (code) the DB connection Device/System uses. ADO.NET, ADO, JET, DAO, Or even SolidADO.
VBA can transmit any language (SQL code words) needed to and thru any Connection device:
When paulked and XLD are talking about "References" they are talking about Early Binding vs Late Binding. Early binding is slightly simpler and works well for the Standard (always present: Application, Office, and VBA) References, but Late Binding is much more robust and universal.
Google "VBA Early Late Binding" for more information.
Last edited by SamT; 12-31-2019 at 10:58 AM.
I expect the student to do their homework and find all the errrors I leeve in.
Please take the time to read the Forum FAQ
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
If he really is/wants to use Solidworks, I think he has a problem. Solidworks seems to be locked down, you cannot query it directly. They do provide an API that you can program, but that means learning a whole new box of tricks (not for me).
And to be perfectly frank, the OP is asking for an application, not just some code to access a database. I envisage a big job for someone.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Not really, I didn't understand it fully before I read up on itDoes your response have any relevance to what I said?
Off to party now... Happy New Year all!
Semper in excretia sumus; solum profundum variat.
Yea, the OP. Not me, I don't need SolidWorks. That's why I gave him clues as to the path he must followI envisage a big job for someone.
I expect the student to do their homework and find all the errrors I leeve in.
Please take the time to read the Forum FAQ