Set Mytable = MyDB.OpenRecordset

T

Tom

Help,

I am not much of a programmer, but I have managed to build a fairly good
tool.



The original code was written in 2003 but upon the conversion to 2007, I get
a Type Mismatch on the following code.



Const ProductTable = "Products"

Dim MyTable As Recordset

Dim MyDB As Database

Dim PNHolder As String





Set MyDB = CurrentDb()

Set MyTable = MyDB.OpenRecordset(ProductTable) ---ß<<< Error appears
here??
 
S

Steve

Hello Tom,

ProductTable needs to be enclosed inside double quotes.

Steve
(e-mail address removed)
 
A

Allen Browne

Steve, I think you missed the constant declaration on the first line of his
code.
 
J

John... Visio MVP

and you also missed the concept that these newsgroups are not provided so
you can ply your questionable services.

John...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top