Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Re: Runtime err...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 30241 of 31596
Post > Topic >>

Re: Runtime error 424: Object required

by Salad <oil@[EMAIL PROTECTED] > May 12, 2008 at 02:52 PM

gmazza via AccessMonster.com wrote:

> Hi there,
> I am a novice at Access programming but I am flustered by this error and
> don't understand what I am doing wrong, any help is appreciated.
> Here is my code:
> Sub SetFilter()
> 
>     Dim LSQL  As String
>    
>     LSQL = "select * from dbo_DDXLMO"
>     LSQL = LSQL & " where St_Offshore = '" & cboSelected & "'"
> 
>     Form_frm_OffsetWells_sub.RecordSource = LSQL
> 
> End Sub
> 
> I am calling the SetFilter routine from my Form_Open Procedure and all I
have
> is a form and subform and in the form I have an unbound combo box that
> selects St_Offshore from table dbo_DDXLMO.
> I am just trying to populate the subform with results from my combo box
and I
> keep getting this error and I have tried a million things and nothing is
> working.
> Please help, thanks!
> 
You might want to try the following format
	Forms!MainFormName!SubFormName.Form.Recordsource = ...
or
	Me("SubFormName").Form.Recordsource = ...

Brass
http://www.youtube.com/watch?v=1qdvz0uPpNk
 




 4 Posts in Topic:
Runtime error 424: Object required
"gmazza via AccessMo  2008-05-12 21:30:12 
Re: Runtime error 424: Object required
Salad <oil@[EMAIL PROT  2008-05-12 14:52:48 
Re: Runtime error 424: Object required
"gmazza via AccessMo  2008-05-12 22:05:24 
Re: Runtime error 424: Object required
Pachydermitis <praesag  2008-05-12 15:27:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 11:48:26 CST 2008.