Recent content by Rick_A

  1. R

    Yes, No, "Both" Query.

    If you reference the control in a query then you will not be able to do what you are trying to do. You're best bet in this situation would be to create the query dynamically.
  2. R

    Yes, No, "Both" Query.

    If you simply do not include the field in your criteria, you will get all records that have either a 0 or -1.
  3. R

    Concatenate fieldname

    Try this; Lets say your counter is named "i", then you could refer to your field like so: Me.Controls("period_" & i).Visible = True
  4. R

    help with combo box

    Use this: SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>'~') AND (MSysObjects.Type)=-32768 ORDER BY MSysObjects.Name;
  5. R

    Unbound Combo Box Question

    Set the width property of the combobox so that the column with the id has a width of zero. So the width property of the combo box should look something like: 0";1";1";1"
  6. R

    IIF, OR & Nz Formula Assist Please

    Try this: IIf(Nz([Allocated],0)+(Nz([Carryover],0))=0 OR (Nz([Approved],0)=0,0),0)
  7. R

    Nz Formula Help Needed

    I'm pretty sure you'll also need to call the Nz function like so: Nz([Approved],0)
  8. R

    MS Access:Replacing some characters in a result column query result

    In your query, create a calculated field with this: Replace([Product_Description],"$Detail",[Product_Solution])
  9. R

    Dynamic multiple fields search - list box

    I'm not sure what you're up to with this, but it sounds like you're gonna want some code on the click event of the list box. To get the value that was selected in the list use: lstListBox.ItemData(lstListBox.ListIndex) Assign this to a string and then do a select case, i.e. Select Case...
  10. R

    removing a break point

    My first thought was to make sure that a control named "CoName" exists on the form--make sure it's not misspelled or something.
  11. R

    Constants

    This should work: Private Sub MyZipCode_KeyPress (KeyAscii As Integer) If KeyAscii >= vbKeyA And KeyAscii <= Asc("z") Then KeyAscii = 0 End IfEnd Sub
  12. R

    apply filter button not working

    If I'm understanding you correctly, then this should do the trick. Private Sub clear_Click() Me.contactsubform.Form.FilterOn = False cbocompany = "" cboname = "" cbostate = "" End Sub
  13. R

    apply filter button not working

    Like so: Private Sub cmdApplyFilter_Click() Dim strWHERE As String If Len(Me.cbocompany) > 0 Then strWHERE = " [CompanyID] = " & Me.cbocompany & " OR " End If If Len(Me.cboname) > 0 Then strWHERE = strWHERE & " [NameFull] = '" & Me.cboname & "' OR " End If If...
  14. R

    apply filter button not working

    Use this instead: If Len(Me.cbocompany) > 0 Then strWHERE = " [CompanyID] = " & Me.cbocompany & " Or " End If
  15. R

    help creating random number

    It sounds like this is for Excel? Can't you format the cells to display the number the way you want? I've tried this in Access and Excel with no problems.
Back
Top Bottom