run time error “3061” : too few parameters, expected 1

前端 未结 2 1463
谎友^
谎友^ 2021-01-27 00:59

VB6 (32 BIT - 1998) ERROR 3061 - WINDOWS 7 - ACCESS 2007 - EXCEL 2007

I wrote a VB6 program that extracts records from an ACCESS 2007 database and writes them into an EX

2条回答
  •  终归单人心
    2021-01-27 01:37

    If you're certain the SELECT statement in your question is the exact statement built by your code, copy that text, create a new query in the Access query designer, switch to SQL View, paste in the copied text and try to run it.

    Access will present a parameter input box asking you to supply a value for the parameter. Notice that box includes the "name" of whatever Access thinks is the parameter. That parameter name is something (often a misspelled field name) Access can't find in the VALORES_GENERADORES table. Since it can't find the name, it assumes the name must be a parameter.

提交回复
热议问题