Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object required error?

Status
Not open for further replies.

kalebson

Programmer
Mar 3, 2006
60
US
I am using a combo box w/ this query:

SELECT DISTINCT [ReceivedData].[Date] FROM ReceivedData;

I amd using this box to seect a date for a report run using this:

Private Sub Command14_Click()
On Error GoTo Err_Command14_Click

Dim stDocName As String

stDocName = "AbanRateForForm

DoCmd.OpenReport stDocName, acPreview, , "ReceivedData.[Date] = #" & Froms!AbanRateForForm!SelectDate & "#"

Exit_Command14_Click:
Exit Sub

Err_Command14_Click:
MsgBox Err.Description
Resume Exit_Command14_Click

End Sub

However when I click the button I get "object required" error...could someone tell what im missing here..TIA.
 
Replace this:
Froms
with this:
Forms

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
OMG im an idiot.....fresh eyes always the answer..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top