|
-
Apr 30th, 2005, 08:05 AM
#1
Thread Starter
Fanatic Member
Installing a program
I created a program using the Date reserved word. When I install it on another computer, it says "Can't find object librairies or modules". I installed VB to see what's the problem, and it's crashing on the line using Date. I compared and they both have the same references.
-
Apr 30th, 2005, 08:16 AM
#2
Thread Starter
Fanatic Member
Re: Installing a program
That's weird, each time I try to open a table in MS Access, it pop up an "Unknown" error. So I can't access my DB with my program.
-
Apr 30th, 2005, 08:51 AM
#3
Re: Installing a program
is ms access installed on the other machine? and the same version as yours?
pete
-
Apr 30th, 2005, 09:32 AM
#4
Re: Installing a program
When you say you "installed" it are you saying that you created an installation package? If not then that is what you need to do.
-
Apr 30th, 2005, 11:26 AM
#5
Re: Installing a program
 Originally Posted by Gensor
...I installed VB to see what's the problem, and it's crashing on the line using Date. I compared and they both have the same references.
If the other system now has vb installed, did you also install the service pack too?
But like Martin suggested, create an installation package using the P&D Wizard or other installer program.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 1st, 2005, 11:07 PM
#6
Re: Installing a program
If Date is used in a query as the name of a field, surround it with brackets [Date] and it should still work.
-
May 2nd, 2005, 11:17 AM
#7
Re: Installing a program
 Originally Posted by dglienna
If Date is used in a query as the name of a field, surround it with brackets [Date] and it should still work.
Did you read the question? How could the value of a date cause the app to crash on one PC but not another?
-
May 2nd, 2005, 01:01 PM
#8
Re: Installing a program
How about it's a bad practice, that warrants trouble?
-
May 2nd, 2005, 02:38 PM
#9
Re: Installing a program
Yes it can be considered bad practice. But you still have not explained yourself to the thread starter. Can you give us a bad example and a good example of what you're talking about, then we will all see the light and will be happy.
Woof
-
May 2nd, 2005, 02:53 PM
#10
Re: Installing a program
How about from the M$ website?
Reserved words have a specific meaning to Access or to the Microsoft Jet database engine. If you use a reserved word or symbol, you may receive an error.
-D
DATABASE
DATE
DATETIME
DELETE
DESC
Description
DISALLOW
DISTINCT
DISTINCTROW
Document
DOUBLE
DROP
http://support.microsoft.com/kb/q286335/
And, like I said, if you have a field named as one of the reserved words, to avoid problems with the DB engine, you can simply use [ ] brackets around it, in which case the DB engine will know that it is not to be interpreted as a reserved word.
VB Code:
rsUsers.Open "SELECT [Name] [Date] FROM Users;", cnAP, adOpenDynamic, adLockPessimistic
would be better than
VB Code:
rsUsers.Open "SELECT Name Date FROM Users;", cnAP, adOpenDynamic, adLockPessimistic
-
May 2nd, 2005, 03:14 PM
#11
Re: Installing a program
Looks like your missing the point dave.
If the program was opened in the VB IDE on the target system and stepped through as the thread starter states,
it is crashing on a line containing a reference to Date. It is not stated that it is even being used in a query.
Not to mention that if that was the case then it would cause an issue on ALL systems and not just a particular one,
at least until the brackets were implemented.
Also, since the thread starter can not even open the db from Access suggests that the issue is related to
something completely different then the bracket solution.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|