Button coded with MVB

cmfog

Registered User.
Local time
Yesterday, 21:21
Joined
Jun 18, 2014
Messages
21
When I click the button that I have on my form it is giving me a pop up saying "Run-time error '3061' Too few parameters. Expected 1."

So then I go to debug it and the highlighted line "Set rstCompNames = qdfCompNames.OpenRecordset." When I hover of it it says "rstCompNames = nothing."

I am not sure why it stopped working or how to correct it
 
If you could post the entire code block maybe someone can help - ?

edit - have to be fast around here :)
 
chances are you want
Code:
        ' This is guessing that CompNames is the name of your query.
        Set rstCompNames = CurrentDb.OpenRecordset "CompNames"
 
Thank you all but I figured it out
 

Users who are viewing this thread

Back
Top Bottom