Re: Reference Error



If that does not work then try a /decompile.
http://www.granite.ab.ca/access/decompile.htm

tonym415@xxxxxxxxx wrote:
I think this is a reference error. All of a sudden my database doesn't
know what a "control" is. I have written forms and I get a "Module Not
Found" error. The line that is highlighted is a sub definition. (Sub
tbFormat(ctl As control))

I've tried fudging it and changing the statement to: Sub tbFormat(ctl
As object) then I get an error in another module on a line saying the
following: dim db as database.

I think there has to be some default references that have gotten
deleted. Can someone help please!!!!

--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via http://www.accessmonster.com

.



Relevant Pages

  • Re: Simple Insert Into...
    ... You can store unbound control data in a variable, ... in the sql. ... Dim strSQL As String ... In your form's Sub, you'll wind up with something like the following: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Simple Insert Into...
    ... it is in a control on the form; and is unbound (it's actually a combo ... box that is used as a dropdown list, values taken from a different table; SQL ... I need this value to assign a unique ID to the entire recordset being ... In your form's Sub, you'll wind up with something like the following: ...
    (microsoft.public.access.modulesdaovba)
  • Re: CORRECTED TEST AND ANSWERS.
    ... Private Function MyFunctionas integer ... >A Sub cannot have a return value. ... >A form is Unloaded specifically set to Nothing while one control on it is ... >references per se; what you are saying is any reference to a control on the ...
    (microsoft.public.vb.general.discussion)
  • Re: stephen lebans tool tip
    ... ListBox control. ... > Private Sub cboFindACustomer_MouseMove(Button As Integer, ... > ' Set the text for the txtCustomerID label. ...
    (microsoft.public.access.forms)
  • Re: Change textbox/combobox colors with a procedure
    ... as I have more that a few variables depending on the measurement type. ... The Form's Current event procedure title is: Private Sub Form_Current ... Private Sub FormatControl(CTRL As Control) ...
    (microsoft.public.access.formscoding)