Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2007, 04:53 AM
Registered User
 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Enter Parameter Value error

i've created a menu form for the front end of my database, which has the option of either entering a new record in data entry mode or selecting a record through a filter query.

The data entry mode does not have any filters applied to it, yet when i click the command button (which runs a simple openform macro) i get a prompt to "Enter Parameter Value" for the name field...

i'm using Access 2002 on windows XP
thanks
Dom

 
Old August 16th, 2007, 06:41 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Wow, macros.

The code on the button is opening a data entry form? What is the recordsource for the data entry form? Is it a query (sounds like it.) If so, what is the "name" field? "Name" is a reserved word and should not be used for a field name. Can you open the query without getting prompted for the parameter? That would make a difference.


mmcdonal
 
Old August 16th, 2007, 07:01 AM
Registered User
 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That's the problem - the command shouldn't be accessing a query at all - it should simply open the form and table in data entry mode with a completely blank record...

 
Old August 16th, 2007, 07:06 AM
Registered User
 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok, having now changed the fieldname from "name" to "service user", that seems to have solved the problem!

thanks for that

Dom

 
Old August 16th, 2007, 07:17 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

That was simple then. good.

You may want to do some research into reserved words for reference. Also other naming conventions like no spaces etc. The Wrox books are pretty thorough on these topics.


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
"Enter parameter value" occurrs randomly carrie09 Access 5 April 3rd, 2007 10:47 AM
Unexpected enter parameter value lic023 Access VBA 1 March 13th, 2006 03:49 PM
Enter Parameter Value Sibrovvs Access 3 November 26th, 2004 12:57 PM
How to hide "Enter Parameter Value" screen crsytal salmaan Crystal Reports 2 April 21st, 2004 11:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.