Discussion Locked

Invalid Argument on qmak query

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am building new tables in a 2.5 gig access 2000 database that is replacing a smaller one that was in Access 97. The tables I am creating are basically the same as used in the old database. I will start a qmak query up and get a "Invalid Argument". If I change it to a qsel query, I get the answer I need. Sometimes an exit from Access 2000 and restarting will allow the qmak query to work. The same query works in Access 97. I have checked each selection in the query out and all are correct. What is causing the ?Invalid Argument??

Thank You

7 replies

by donq

I found passing the argument as a Varient helped:

Dim varReturn As Variant

varReturn = ProcedureName("Arg1", "Arg2")

by it_cowboy

This is going to be a pain, but check for corrupt data in your tables. 2.5 gig is probably a tad large for access, you should probably be looking at something a little more rigid like sql, but...

I had a similar problem with a make table query.If I compacted the db, it would work, but all subsequent calls of the same query resulted in the error you have.

By chance I found corrupt data in one cell. I couldnt delete the contents of the cell, so I deleted the record and recreated it and voila, my make table query started working again.

Start building qmak queries on one field at a time. When you hit the field with the error you have at least nailed the field, then you will need to find the record. Try sorting on the field, thatmay work.

Best of luck.

by it_cowboy

Just an added note. The select query is working because its only displaying the contents of the cells. The make table query doesnt work because it cannot write the contents of the cell.

This discussion is closed to new replies.