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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by TrojanRabbit

  1. TrojanRabbit

    DisplayingReport

    Dim frm As Form For All frm in Forms frm.Visible = False Next frm
  2. TrojanRabbit

    Using Checkbox "Visible" Property in Report

    <control>.Visible = <checkbox> You can put this in the report's Open event or the detail section's Format event.
  3. TrojanRabbit

    I have a form that won't open from a command button

    Is there any recordset action going on when it opens from the command button? What differs when it's opened via the button vs opened from the database window? If something else is going on in the process, you may wish to use DoEvents after DoCmd.OpenForm... or in the form's Open or Load event...
  4. TrojanRabbit

    mouse scroll in textbox

    Anyone know how to set a mousewheel to scroll a textbox rather than records?
  5. TrojanRabbit

    working with mouse scroll

    Anyone know about working with the mouse scroll? In a certain form, I want it to scroll a text box when it's in it. I don't want it scrolling records. I've found articles about turning the mouse scroll off, but I want to tell it work with the textbox when the textbox has the focus.
  6. TrojanRabbit

    Seting a textbox name by passing a variable

    If you're just trying to refer to textbox n, Me.Controls(&quot;txtbox&quot; & n)
  7. TrojanRabbit

    Seting a textbox name by passing a variable

    Not sure I understand clearly, but here's what I can say. Sounds like you already know how to get the 1 in query1. When you construct the textbox, use the Name property. Me.<textbox>.Name = &quot;txtbox&quot; & n Also, Me.Controls(&quot;<name>&quot; OR index).Name = &quot;txtbox&quot; & n
  8. TrojanRabbit

    Updating .CAPTION property

    Use DoEvents when it should update. When you work with recordsets, Access seems to like finish the recordset work before doing anything with the display. DoEvents says, &quot;Let everything else finish before continuing.&quot; There is a FAQ about DoEvents concerning progress bars.
  9. TrojanRabbit

    Tying to Functions together!

    Ah, I see. Select a number of random records. That may be a little more complicated. A less practical way might be to set a recordset to the file/table, then randomly go to a record (rs.Move Rnd(),1) and copy it into another recordset. This would allow a record to be repeated, however, unless...
  10. TrojanRabbit

    Tying to Functions together!

    If I understand correctly, you want to open a percentage of records from a table and assign random numbers for them. Since the first function assigns to all records, it wouldn't be useful for this. You could actually just put the code in Yadda, but, if you want SetTmpRndNbr to be able to assign...
  11. TrojanRabbit

    What is the ControlType of the Parent?

    Maybe Type property. You can capture the error and check the error number if it gives one. Only ideas.
  12. TrojanRabbit

    Deletion in a Multiuser environment.

    Interesting that Refresh and Requery don't work. Maybe have the form call OpenForm with itself. Never tried this, so I don't know if you can.
  13. TrojanRabbit

    having a problem with filtering code...

    I think the filter needs to receive a string. [Calc Hours subform].Filter = &quot;PayPeriodstart <= #&quot; & [Calc Hours subform].Form![Date] & &quot;# And #&quot; & [Calc Hours subform].Form![Date] & &quot;# <= PayPeriodEnd&quot; or [Calc Hours subform].Filter = &quot;PayPeriodstart <= [Calc...
  14. TrojanRabbit

    How do I reference a control (or form/report) using a variable?

    To reference a control by variable: Me.Controls(var) or Form_frmName.Controls(var) Control properties may be used with this reference also (Me.Controls(var).Name). You can use a similar method for referring to a form or report by variable. CurrentProject.AllForms(var).Name...
  15. TrojanRabbit

    Explicit References

    Also, CurrentProject.AllReports(MyRpt).Name.

Part and Inventory Search

Back
Top