?
Solved

Form is asking for a parameter value

Posted on 2011-09-12
12
Medium Priority
?
331 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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 1000 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 1000 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

777 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