473,385 Members | 1,753 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,385 software developers and data experts.

Converting to Access 2007

9
Hi,

Am interested in migrating my app to Access 2007 to make use of the free availability of the Access 2007 runtime/developer tools, howver having some problems with the script below.


Expand|Select|Wrap|Line Numbers
  1. Dim db As Database
  2. Dim qdf As QueryDef
  3. Dim prm As Parameter
  4. Dim rs As Recordset
  5. Dim inte As Integer
  6.  
  7. Dim strCashier As String
  8. Dim strCatId As String
  9.  
  10. Set db = CurrentDb
  11. Set qdf = db.QueryDefs("CashierSelect1")
  12.  
  13.     For Each prm In qdf.Parameters
  14.             prm.Value = Eval(prm.name)
  15.     Next prm
  16.  
  17. Set rs = qdf.OpenRecordset(dbOpenDynaset)
Access2007 throws up a 'Mismatch' error at line 17 - works fine in Acc2000 and 2003, any ideas.

Thanks in advance.
Sep 13 '07 #1
1 1345
MMcCarthy
14,534 Expert Mod 8TB
Not sure why its not working but to get around the problem try the following:

Expand|Select|Wrap|Line Numbers
  1. Dim db As DAO.Database
  2. Dim qdf As QueryDef
  3. Dim prm As Parameter
  4. Dim rs As Recordset
  5. Dim inte As Integer
  6. Dim strCashier As String
  7. Dim strCatId As String
  8.  
  9.     Set db = CurrentDb
  10.     Set qdf = db.QueryDefs("CashierSelect1")
  11.  
  12.     For Each prm In qdf.Parameters
  13.         prm.Value = Eval(prm.Name)
  14.     Next prm
  15.  
  16.     Set rs = db.OpenRecordset("CashierSelect1", dbOpenDynaset)
  17.  
  18.  
Sep 14 '07 #2

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

Similar topics

23
by: Reggie | last post by:
Hi and TIA. I developed several A2K dbs which are now being run on my clients computer which have been upgraded to Access 03. I'm not sure exactly what they mean but of you know or could point me...
10
by: NEWSGROUPS | last post by:
I work for an organization that is migrating from Access 2000 to Access 2003. About 5 or 6 years ago we migrated from Access 97 to Access 2000 with no problem. Will I have trouble converting these...
3
by: zshenk | last post by:
I need help converting dates. Currently, I have several tables and databases that use the format 1/20/2007. I have a table right now that uses the 20070120 format, and I was hoping that someone...
1
by: Anandshr | last post by:
I have a database created in Ms Access 95 file format. now i want to convert it into Ms Access 2000,2002 or 2007 file format. I got the error when converting that database. I've already tried to...
0
by: myemail.an | last post by:
Hi all, I had a database with 3 tables (no queries) in an Access 2007 file. I converted the file to Access 2000 format, as that is the only Access format recognized by the SQL server we have...
0
by: wassimdaccache | last post by:
Hello all I have designed a database on ms access 2003. Now I found that the user that he is going to use this database has ms access 2007 and unfortunately he doesn't want to use 2003 :S I...
5
by: mjvm | last post by:
Hi, My database (Access 2003) is split with the back end on the server and each person with a front end that is linked. Over time the computers/laptops are being replaced and almost everyone is on...
20
by: ncsthbell | last post by:
We currently have Access 2000 and are converting to 2007. I have a very complicated Access application and am so lost with where to start. When I bring the application up, there are different tabs...
10
by: Anthony97 | last post by:
This is a problem I've been fighting through for the last month. I've been tasked with converting access 2007 queries to SQL Server 2005. I have been able to convert a number of queries associated...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.