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

Search results for query: *

  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.
  16. TrojanRabbit

    Microsoft Access &quot;Event Procedure&quot;

    Where is the error occurring? If it's in VB code, Debug should tell you which variable is not found. If it happens when it tries to use the SQL code, you may need to put [Forms]![Find_a_record_form]![Field12] outside the quote marks. &quot;bd_number=&quot; &...
  17. TrojanRabbit

    Importing Text File Problem

    It's nothing more than that, really. Just creating table TableName from textfile FileName is all, using the specifications in SpecificationName. I had a problem with it once, so I used DoCmd.TransferDatabase. That tends to be more reliable. If TransferText is working for you (doesn't look like...
  18. TrojanRabbit

    Please pick this apart...

    Looks to me like you have the right idea. It looks like SetValue will always be one of the four cases in the code. In that case, good. If it could be something else, you should fill in Else. To handle events with the Cancel button, have the code put the focus somewhere else, then alter its...
  19. TrojanRabbit

    Adding A Name in the Combo Box

    Use the AfterUpdate event of the combobox to update the phone number. If the phone number is coming from a table, the best way I can think of is a recordset. You need reference Microsoft DAO 3.6 Object Library (or latest DAO Object Lib) for recordsets. Dim rst As Recordset Set rst =...
  20. TrojanRabbit

    Inserting form data in table

    Make sure you have Microsoft DAO 3.6 Objects Library checked in references (Tools). If that doesn't exist in the list, use the latest DAO Objects Lib.

Part and Inventory Search

Back
Top