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!

Search results for query: *

  • Users: r0nniem
  • Content: Threads
  • Order by date
  1. r0nniem

    Refer to a textbox's name to change it's properties for a function.

    Hi there, I have 41 textboxes for a calendar. When I click on a text box I need it to change it's visual properties to indicate its been selected and if clicked again to be unselected. Not wanting to do this 41 times ... what do I call the "Current Text Box"? If CurTextBox.BackColor =...
  2. r0nniem

    using NoData & Error Handler - still coming up with 2501 runtime error

    Can you please help? This form opens several reports based on the criteria entered - select the report name, and select/enter data to view report. In each report I have: Private Sub Report_NoData(Cancel As Integer) MsgBox "There is no data for this report. Canceling report." Cancel =...
  3. r0nniem

    Crieria based on Form

    Hi, I have a form with different job types to filter for queries and reports. If Job Type = ALL is selected, I want the query to filter Job Type <>"GUARD", or; if Job Type = Guard is selected, to filter on job type = Guard. Not sure how to do this in the query criteria ... the Iif...
  4. r0nniem

    If combo box has no data in dropdown, display error message.

    Hoping you can help me out. I've got a tabbed form with subforms. A couple of the tabs are: 1. Tariff Info 2. Rates Info with Tariff Combo box. Example of Tarrif Data: 1-MonToFri 08:00 to 16:59 2-MonToFriAH 17:00 to 21:59 In the Rates Info tab, the Tariff combo is linked to the Tariff...
  5. r0nniem

    IIf statement with In

    I'm wanting to look at everyday info (weekdays and weekend) for all Zones, except only weekdays for Newcastle, Gold Coast and Perth zones. What I've tried in the query, is creating a new field with: iif([RptZoneCat]=(In ("Newcastle","Gold Coast","Perth")),8,[DOW]). It doesn't like it. Is...
  6. r0nniem

    Create table for filling in missing dates.

    I have a form where users enter a date range for a query (field techs utilisation). The data in the query is missing some days when they didn't do any jobs that day, but I need know if a tech didn't do any jobs so I can make the data 0. After thinking about it, here's my method for filling...
  7. r0nniem

    Loop to fill in deleted consecutive numbers

    This is probably really basic, but I'm new to "behind the scenes" side of things. I have a field "ID" listing numbers. Say 1, 2, 3, 5, 6. I want the next record to be 4 - filling in the blank. I know it's a Loop thingy, but now sure how to go about it yet. If you could get me on the right...
  8. r0nniem

    Measuring time between consecutive rows

    Here some sample data. I wanting to measuring the time for each activity, eg. total time he was available, unavailable, oncall & aftercall each day. How do I do suggest I do it? ID User Time Activity 3105590 eloc 12/07/06 06:36:27 AVAILABLE 3105599 eloc 12/07/06 06:38:09...
  9. r0nniem

    First Monday of the Month

    From thread705-664946 Apparently this is for the first Saturday of the next month. DateSerial(Year(mydte), Month(mydte) + 1, 1 + (7 - Weekday(DateSerial(Year(mydte), Month(mydte) + 1, 1)))) How can I make this work for the First Monday of the current month? Thanks Veronica
  10. r0nniem

    Problem with AfterUpdate - Field shows code, not answer

    I'm wanting to select a [name] on the form, and it to automatically fill in the [acro]. I've added a msg so I can see what it's doing and it's showing the code "SELECT [Contractors Table].acro FROM [Contractors Table]WHERE(([Contractors Table].Name)=[forms]![frmcmcstaff]![cmbname]);", not the...
  11. r0nniem

    Creating Date Range by Month, Year &amp; Week

    In a form, I've the following fields: Month, Year, BegTransDate, EndTransDate When Month and Year are updated, it fills in the BegTransDate and EndTransDate. Month = August Year = 2006 BegTransDate = 01/08/06 EndTransDate = 31/08/06 I've added a "Week" combo box, listing week 1, week 2 etc...
  12. r0nniem

    Missing Months - select query not crosstab.

    Hi there, I've been searching around here for sometime on this topic with no luck. Here's my data: Year Month No Month Tech ALL Not COMP COMP %_COMP 2005 8 Aug 2005 Weipa 3 0 3 100.00% 2005 9 Sep 2005 Weipa 1 0 1 100.00% 2005 10 Oct...
  13. r0nniem

    Or in an IIF Statement not working

    this is my code that's not working: iif(Weekday([answered_time])=1 or 7, "Weekend", IIf(TimeValue([answered_time])<"16:00","Day","Evening") It will work if I use: iif(Weekday([answered_time])=1, "Weekend", IIf(TimeValue([answered_time])<"16:00","Day","Evening") and...
  14. r0nniem

    Date to Month, Week format

    Hi, I'm wanting to format a date to month then week ... eg June 06 Week 1 would cover date range thursday 01/06/06 to Saturday 03/06/06 June 06 Week 2 would cover date range Sunday 04/06/06 to Saturday 10/06/06 I would appreaciate your help thanks :)
  15. r0nniem

    Converting a number to Time

    Hi I've got these fields: Call Placement Time: 15/06/06 09:15:05 Time To Fix: 1.5 (Number format meaning 1hr 30 mins) I want to add Time to Fix to Call Placement Time so I can do a countdown of time left to fix. Can you pleae help? Thanks R0nnie:)

Part and Inventory Search

Back
Top