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 TouchToneTommy 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: mrbboy
  • Content: Threads
  • Order by date
  1. mrbboy

    How to include like wildcard in search

    I want to build a form that allows keyword searches using a textbox but don't know where to insert the "like" clause. If Not IsNull(Me.txt_search) Then Whereclause = "[Details] = '" & Me.txt_search & "'" End If Thanks
  2. mrbboy

    How to filter form using field on subform

    I have a form called frm_Mainform that is used to enter general information regarding the service of an instrument. frm_MainForm MainFormID <PK> PersonPerformingService <Text> Department <text> ServiceDate <Date> I now have a subform that contains: sfrm_Instrument InstrumentID <PK> MainFormID...
  3. mrbboy

    help with multi select list box

    I have a form, frm_Main, with three subforms. One of the subforms, sfrm_Service, contains a multi select list box. This list box shows all the possible repairs that can be done on a particluar instrument. I want the user to be able to click all that is done. I also placed a command button...
  4. mrbboy

    Help with Whereclause

    I am using the following code to filter a form, frm_ExternalAudit_View, with a subform, fr_AuditDetails. The field that I want to filter is [Status] and this is found in the subform. Dim stDocName As String, Whereclause As String, frm As Form, sfrm As Form Set frm =...
  5. mrbboy

    Subform doesn't open correctly

    I am using the following code to open a form (frm_Audit) that contains a subform (frm_AuditDetails) from another form, frm_Search. This is the code in the On CLick event of a combo box in frm_Search. Dim stDocName As String Dim Whereclause As String stDocName = "frm_Audit"...
  6. mrbboy

    problem with seeing records in subform

    I have two tables: tbl_Audit AuditID <PK> Auditor Name etc tbl_AuditDetails DetailsID <PK> AuditID <FK> I have a form, frm_Audit, that is used to enter general info into tbl_Audit. This form also contains a subform, frm_AuditDetails, and this is used to enter the specifics of an audit. The...
  7. mrbboy

    Open another form

    I have a form, frm_Metrix, for viewing the number of audit items performed during an audit. The record source of this form is tbl_Audit which has: tbl_Audit AuditID <key> Item No <Number> I have another form, frm_Audit, that is used to enter all the audit items into tbl_Audit. In...
  8. mrbboy

    Problem with placing attachment into OLE field

    I have an unusual problem with one of my forms. I designed a form for entering maintenance records of instruments. One of the fields is for attachments and its property is set to OLE Object. I named this field txt_attachment and placed it at the bottom of the form, after several other text...
  9. mrbboy

    How to query records

    I have a form, frm_Metrix, that I use to tract the number of Reports generated per month. The RecordSource of the form is the query qry_Metrix. Here is the sequel for that. SELECT Count(*) AS NoOfReport, Year([Date Initiated]) AS [Year Initiated], Month([Date Initiated]) AS [Month Initiated]...
  10. mrbboy

    How to get last record in table then email that record

    I have a table for client complaints, tbl_CARGeneral. The fields are: tbl_CARGeneral CARID <autonumber> Initiated By <Text> Date Initiated <Date> Status <Text> I have a form, frm_CARNew, where users can log the complaints into tbl_CARGeneral. I then copied this form (frm_CARReview) then set...
  11. mrbboy

    help with datediff()

    I have a form with two text fields, txt_FollowUpDate and txt_ApproveDate. In the After Update event of txt_ApproveDate, I placed the code below to check if the date enetred in it is before the follow up date. If DateDiff("d", Date, [txt_FollowUpDate]) <= 0 Then Me.txt_ApproveDate = Date Else...
  12. mrbboy

    How to check if all controls are null

    I have a form for recording client complaints. The first control is a combo box, cbo_PM, where people can select their names from a drop down list. The rest of the text boxes and combo boxes in the form is for documenting other aspects of the complaint. The problem I have is that people...
  13. mrbboy

    How to get number of records each month

    I have a table for storing client complaints. The structure of the table is: tbl_Complaints ComplaintID <autonumber> InitiatedBy <text> DateInitiated <date> Complaint <Memo> Every month, I need to make a report on the number of complaints received per month. How do I qeury that from the table?
  14. mrbboy

    How to proceed with task

    I have a form, frm_Log, that people use to document phone calls from clients. If the phone call is a client complaint, the check box, chk_Complaint, will be checked. Clicking this check box sends an outlook task to the department manager to respond to the client within a specified amount of...
  15. mrbboy

    Invalid use of null error message

    I have this code for assigning tasks. When I run the code, I get the "Invalid use of null" error message. I looked at all the fields on the form and subform and nothing is null. Why am I getting this error message. Please help. Dim OutlookApp As New Outlook.Application Dim OutlookTask As...
  16. mrbboy

    How to hide control in tab pages

    I have a form with 2 tab pages. Each tab page has a subform in form view. In tab page 1, I have a command button, cmd_Next. When this button is clicked, I want another command button in tab page 2, cmd_Send, to become disabled. How is this done?
  17. mrbboy

    How to set query as recordsource of form in vb

    I have a form, frm_CARReview, that I want the data filtered using a selection in combo box, cbo_Choices in another form frm_Choices. The choices are All, Open and Close. The first filter is to give me the last record in tbl_CARGeneral. SELECT Last(tbl_CARGeneral.CARID) AS LastOfCARID...
  18. mrbboy

    Change query with code

    Hello. I am running the following sql query as the record source for my form: SELECT tbl_CARGeneral.CARID, tbl_Employee.Employee, tbl_CARGeneral.[Date Initiated], tbl_CARGeneral.Status FROM tbl_CARGeneral INNER JOIN tbl_Employee ON tbl_CARGeneral.[Initiated By] = tbl_Employee.EmployeeID; I...
  19. mrbboy

    Enable command button based on selected tab page

    I have a form that has 5 tab pages. There is also a command button on the form, cmd_Submit. Is it possible to enable/disable the command button, cmd_Submit, based on which tab page is selected? I tried placing the code in the On Click event of a tab (say Tab 2) but it didn'd do anything to...
  20. mrbboy

    lock all records in subform

    My subform contains several combo boxes and text boxes. Users will enter data into all these fields. I want to place a command button on the subform so that when it's clicked, all the fields on the subform are locked. Can this be done?

Part and Inventory Search

Back
Top