Microsoft
Software
Hardware
Network
Question : No value given for one or more required parameters
It must be something simple ;)
After reviewing several other questions similar to this I have not yet found an answer.
I am attempting to select records from a query and insert them into a record set. I have done it before in this form but for some reason this set of statements are causing the a problem.
Dim rstJRN As ADODB.Recordset
Dim strSQL As String
'define the sql statement to be run
strSQL = "SELECT ProjectNumber, CoName, License, Type, FinalsDate, FinalsTax, " & _
"FinalsInterest, FinalsPenalty, AuditCount FROM [qryReportsEngPrlmFnlStlBr
d-1] " & _
"ORDER BY ProjectNumber;"
Set rstJRN = New ADODB.Recordset
'open the record set using the sql statement
rstJRN.Open strSQL, Application.CurrentProject
.Connectio
n
The sql statement is fine, I copied it into a query and it works as expected. Can anyone see the problem I am having?
(High points due to urgency)
Thanks, Majik
Answer : No value given for one or more required parameters
Public MyCriteria
Public Function fnMyCriteria()
fnMyCriteria = pubMyCriteria
end function
in your query criteria
fnMyCriteria()
then before your SQL
pubMyCriteria = me!someCriteria
run your sql
Random Solutions
Outlook 2007 Continuous Authencication
RUNDLL error message "jyku.fjo" on computer start up
Access attaching a file as xls when it should be rtf
active directory, W2k8 R2 DC, Kerberos failures, Event ID: 3, 4771, 4769, 4768, 4776, 4625 source: Microsoft Windows security
Problem with "like" keyword, when database is in chinese
video card driver
Pass Web Page as Parameter to Class in App_Code Folder
Exchange 2007 to 2010 upgrade
Want to open form when file opens, but getting file/access error 75 message
VBA - Playing Movies using VLC or GOM Player