473,396 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

expression works under XP, not under VISTA

The expression

Set mydb = Workspaces(0).OpenDatabase(namMastDB)

where namMastDB is properly defined works under XP (not to mention under 95, 98, NT, 2000 and ME). Subsequent code referring to mydb.varname works.

However, under VISTA, the expression leaves mydb defined as "nothing" and subsequent use of the variable fails.

Any hints would be most welcome. Thanks

Herb
Dec 20 '07 #1
5 947
Dököll
2,364 Expert 2GB
The expression

Set mydb = Workspaces(0).OpenDatabase(namMastDB)

where namMastDB is properly defined works under XP (not to mention under 95, 98, NT, 2000 and ME). Subsequent code referring to mydb.varname works.

However, under VISTA, the expression leaves mydb defined as "nothing" and subsequent use of the variable fails.

Any hints would be most welcome. Thanks

Herb
Hello, herbeber!

What does the property of Vista say?

where namMastDB is properly defined works under XP
Dec 21 '07 #2
Killer42
8,435 Expert 8TB
My guess woul dbe that it's not exactly Vista which is the problem, but the version of DAO or ADO (whichever you're using). Occasionally between versions they have changed the way things are addressed.
Dec 21 '07 #3
Hello, herbeber!

What does the property of Vista say?
I am not sure what you mean. How do I get that? Thanks for trying to help.

Herb
Dec 21 '07 #4
My guess woul dbe that it's not exactly Vista which is the problem, but the version of DAO or ADO (whichever you're using). Occasionally between versions they have changed the way things are addressed.
Thanks. I went from ADO to DAO a couple of years ago - moving to 98. It was tough. Since then DAO has been the standard and OS changes have not affected that until now. Can you suggest any source for further info?

Herb
Dec 21 '07 #5
Killer42
8,435 Expert 8TB
I believe our DAO experts are most active in the Access forum.
Dec 22 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

23
by: Paul Rubin | last post by:
OK, I want to scan a file for lines matching a certain regexp. I'd like to use an assignment expression, like for line in file: if (g := re.match(pat, line)): croggle(g.group(1)) Since...
13
by: Mark Rae | last post by:
Hi, On Friday I attended the Microsoft EVO conference in London where they talked about Vista, Office 2007 and Exchange 2007 and how they all work together beautifully, how they were all...
6
by: j2ee.singh | last post by:
Hi, I'm looking to buy a new laptop primarily to learn & practice .NET and C#. My Question is: Is there any requirement for .NET and C# in terms of the following Operating Systems: -...
2
by: =?Utf-8?B?eHhsdWNpZmVyeHhk?= | last post by:
im looking to buy a new laptop with vista, could anybody tell me which microsoft works software is compatible with vista.
2
by: Thomas Thomassen | last post by:
Hi I made a screensaver in C# as a test project. At the time of creation I used XP and everything worked fine. Then I got a message from someone using Vista about an issue where the settings...
2
by: luttkens | last post by:
I want to register a DLL (fastreport3.dll (version 4.4, size 2 400 kB)) on Windows Vista using regsvr32. It works on Windows XP, but not on Vista. I have tried to do it as administrator and I have...
2
by: 13Rockes | last post by:
I am in the process of writing programs using VB6 in XP Pro. However, I am thinking about starting over using VB2005 as my company is migrating to Vista. Two questions... What kinds of...
2
by: =?Utf-8?B?Vi5DaG9ja2FsaW5nYW0u?= | last post by:
IDE : VS .NET 2003, Platform : .NET 2.0, Hi All, I have my project in VS.Net 2003 (VB.Net). The OS is Vista Ultimate. In a form's Button_Click() event i call a dll which calls another dll and...
1
by: =?Utf-8?B?Qm9iIE4=?= | last post by:
Is Microsoft Works Suite 2004 compatible with Widows VISTA Home Premiun? -- Bob N
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.