Results 1 to 5 of 5
  1. #1
    bcox9 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    10

    Help access 2010 to 2003 vba and sql problem!

    Ok I have written some simple vba code, and a sql statement in the criteria part of my query.



    Everything was working fine in access 2007 and 2010, when I converted it in access 2007 to access 2003 format when I open my form it keeps asking for a parameter, which is point to the textbox that the query criteria is based on.

    I have no idea why it's doing this, and I need some help. I am supposed to implement this on our computers at work tomorrow, because I thought I had finished with it, but I've got to get it working in access 2003 format.

    I've attached everything. The 2007/2010 and the 2003 access files. A professional could probably look over it in 5-10 min and be able to tell me what is wrong.

    Thanks in advance!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I no longer have Access2003 available and the mdb does not present the prompt when opened with 2007. I don't see anything wrong with the query.

    However, if you used a combobox instead of textbox, would not need the LIKE operator.

    Did you run Compact & Repair with 2003? It is a very small project. Go to a computer with 2003 and rebuild if that's what it takes.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    bcox9 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    10
    That's probably what it will take.

    Thanks for looking through it

    Also the company SKU has 2 digits added on to the end of the ISBN (these vary), and the user will only have the ISBN of the book. So won't I need the LIKE operator for querying like that or can I just use = and use the same wildcard format to achieve this?

  4. #4
    bcox9 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    10
    Also, does the vba syntax change, because none of my ridicoulsly short vba commands are working either in the 2003 version.

    It pops up with a reference error, and I believe the pop up is basically a reference error, so maybe the syntax for calling controls is different in 2003?

    I don't know it's frustrating, because I've spent more time trying to fix this problem than I have putting the thing together.

    Thanks in advance, as always.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Not = with * wildcard. Will then need the LIKE operator.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access 2010 vs 2003 hiding applications
    By fostekei in forum Programming
    Replies: 1
    Last Post: 12-07-2011, 05:08 PM
  2. access 2003 emailing via outllok 2010
    By Mclaren in forum Access
    Replies: 1
    Last Post: 09-08-2011, 10:27 PM
  3. Replies: 1
    Last Post: 09-06-2011, 01:39 PM
  4. access 2010 to 2003 conversion
    By Mclaren in forum Access
    Replies: 2
    Last Post: 08-19-2011, 03:53 AM
  5. Replies: 1
    Last Post: 01-11-2011, 12:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums