Solved

Form is asking for a parameter value

Posted on 2011-09-12
12
328 Views
Last Modified: 2013-11-27
Great Day, I am trying to create an estimate for a customer that is having repair work done to his/her vehicle. When I click the customer's vehicle which the estimate is for, Access is requesting a parameter value for CustomerID. I know this sounds like a broken record from programmers of my skill level, but I've looked at every query and field name on the forms, but have been unable to discover why there is a CustomerID that does not have a value.

I have enclosed a copy of the db with the following instructions:

Click on frmCustomerContactData
highlight vehicle to be serviced
click "Repair Order" button

Thanks in advance for your assistance.

r/David
IndependentAuto---EE---9-12-11.zip
0
Comment
Question by:yddadsjd95
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
  • 2
  • +1
12 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 36523070
You are using CustomerID as the link field from your main form to (at least one) subform.
0
 

Author Comment

by:yddadsjd95
ID: 36523134
Thank you Peter57r, Shouldn't that CustomerID already have a value in it?
0
 

Author Comment

by:yddadsjd95
ID: 36523138
Should I be using another link field?
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 31

Expert Comment

by:Helen Feddema
ID: 36523173
I see two problems:  tblVehicles is in the record source of the main form; remove it.  It isn't needed there, just for the linked subform.  Then, in the code running from the Print Repair Order button, one field in the subform is referenced as VehicleMakeID, when it is actually MakeID.  Also, the form in question doesn't exist (I presume that is because this database is still in development).
0
 
LVL 31

Expert Comment

by:Helen Feddema
ID: 36523183
Removing tblVehicles from the main form's record source eliminated the parameter message about CustomerID.  
0
 

Author Comment

by:yddadsjd95
ID: 36523754
Thank you Helen, but I am still getting the same error, even after removing tblVehicles from the main form's record source. Shouldn't CustomerID already have a value in it?
0
 
LVL 77

Assisted Solution

by:peter57r
peter57r earned 250 total points
ID: 36523944
You don't have a field called Customerid in your main form. You have changed it in your query to give it a' table_ ' prefix.
0
 

Author Comment

by:yddadsjd95
ID: 36524521
Thanks Peter57r, I removed the table prefix and it now is CustomerID but I am still getting the same error. Here is the SQL:

SELECT tblJobs.JobID, tblJobs.CustomerID, tblJobs.VehicleID, tblJobs.JobTypeID, tblJobs.RepairDateIn, tblJobs.RepairDateOut, tblJobs.WarrantyWorkPerformed, tblJobs.DateOfWarrantyWork, tblJobs.DescribeWarrantyWork, tblJobs.RepairMilageIn, tblJobs.RepairMileageOut, tblJobs.EmployeeID, tblJobs.PaymentMethod, tblJobs.Last5Digits, tblJobs.MiscellaneousCost
FROM tblJobs;

But what is strange is that when I run the query from design view, it runs with no problem.


r/David
0
 

Author Comment

by:yddadsjd95
ID: 36527146
Oops, I neglected to compile the file I loaded. Here is the corrected version.

thanks,

David
IndependentAuto---EE---9-12-11--.zip
0
 
LVL 61

Accepted Solution

by:
mbizup earned 250 total points
ID: 36528444
In the code behind the command button used to open the Repair Order form, change the open form statement to:

                DoCmd.OpenForm "frmJob", , , WhereCondition:="CustomerID = " & Forms!frmCustomerContactData!txtCustomerID


(Drop the prefix on CustomerID)
0
 

Author Closing Comment

by:yddadsjd95
ID: 36528551
Thank you mbizup, Peter57r told me of the prefix issue, but I looked in the wrong place for it.

Thanks to everyone the request for  parameter value has been eliminated, but I am still not receiving the expected results. with the 'WhereCondition' I was expecting the new estimate to fill with the customer's contact and vehicle information, which I will ask in about in another question.

Have a great day today and an even greater one tomorrow!

r/David
0
 
LVL 61

Expert Comment

by:mbizup
ID: 36528582
David,

As an aside, are these real people's names, phone numbers, etc in your customers table?  If so, you may want to hit the Request Attention button and ask the Mods to help you get these uploads 'sanitized' to protect their privacy.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question