Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 16th, 2007, 04:53 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old August 16th, 2007, 06:41 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 55%
Activity: 55% Activity: 55% Activity: 55%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
  #3 (permalink)  
Old August 16th, 2007, 07:01 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
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...

Reply With Quote
  #4 (permalink)  
Old August 16th, 2007, 07:06 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
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

Reply With Quote
  #5 (permalink)  
Old August 16th, 2007, 07:17 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 55%
Activity: 55% Activity: 55% Activity: 55%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03: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 02:49 PM
Enter Parameter Value Sibrovvs Access 3 November 26th, 2004 11:57 AM
How to hide "Enter Parameter Value" screen crsytal salmaan Crystal Reports 2 April 21st, 2004 11:39 AM



All times are GMT -4. The time now is 07:23 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.