Search results

  1. M

    Filter by date on form open

    Also Can I have to Me.Filter statement in one event??
  2. M

    Filter by date on form open

    not sure I think what I'm trying to do should look something like this. Me.Filter = "dtmCallDateTime=" & >= DATE() AND dtmCallDateTime < DATEADD(dd, 1, DATE()) Me.FilterOn = True But, I can't get this to work??? Any help??
  3. M

    Filter by date on form open

    Hello All- I have a form that contains a subform. On the 'on open' event of the subform I have the following code: Private Sub Form_Open(Cancel As Integer) On Error GoTo Failure Me.Filter = "lngAgentID=" & lngSessionAgentID Me.FilterOn = True ExitRoutine: Exit Sub Failure...
  4. M

    Identity in Multi User Setting???

    @@Identity in Multi User Setting??? I have the following code attached to a submit button on a form. When clicked it updates the entered information to tblContacts. It then returns the primary key, lngContactID, to the text field txtCID. I am having trouble finding out if this will work in a...
  5. M

    Edit Command Button w/ SQL

    Thanks for the advice...I will heed it. I just started learning access and VBA like two weeks ago...it's a slow process, but I'm catching on.
  6. M

    Edit Command Button w/ SQL

    Resolved GOT IT..... the last line..... 'WAS THIS strSQL = strSQL & " chrPhoneNumber = " & "'" & Me.txtPhoneNumber.Value & "', " 'SHOULD BE THIS strSQL = strSQL & "chrPhoneNumber = " & "'" & Me.txtPhoneNumber.Value & "'" How bout that??? Thanks!
  7. M

    Edit Command Button w/ SQL

    It could be. The chrAddress2 field can sometimes be null, and is in my test example? Need I change anything to accomadate this? Also, I don't understand what you mean by Nz(me....),"" Is this what you mean...for each line: strSQL = strSQL & " chrFirstName = " & "'" &...
  8. M

    Edit Command Button w/ SQL

    Hmmmm. Mailman- thanks for the quick reply and tips...much appreciated. I updated the code as you suggested...it is now: Private Sub cmdEdit_Click() On Error GoTo Err_cmdEdit_Click Dim strSQL As String strSQL = "UPDATE tblContacts SET " strSQL = strSQL & " chrFirstName = " & "'" &...
  9. M

    Edit Command Button w/ SQL

    I have an edit button that when clicked should edit the values in my tblContacts. The code attached to the button is: Private Sub cmdEdit_Click() On Error GoTo Err_cmdEdit_Click Dim strSQL As String strSQL = "UPDATE tblContacts SET" strSQL = strSQL & "chrFirstName = " &...
  10. M

    Enter Parameter Value???

    [Unresolved] I've got the combo boxes to work. I just used your code and linked forms instead of a subform. Job done. Know I have a different problem. For some reason I can't have multiple entries. Here's an example. The cascading combo boxes first choose the product type (pen, pencil...
  11. M

    Enter Parameter Value???

    Resolved thanks...I copied your text and it worked fine..I must have had an extra character somewhere..I looked it over 1000 times I just overlooked it. I still haven't found the problem Either way, thanks
  12. M

    Enter Parameter Value???

    The names are spelled correctly. The form frmSaleProductInfo is the same form that contains the combo boxes...so, doesn't that mean the from is open?
  13. M

    Enter Parameter Value???

    I'm trying to design some cascading combo boxes for a form. The tables I'm using are as follows. tblProdType lngProdTypeID.........primary key chrProdType tblProductInfo lngProdID.........primary key chrProductName chrProdTypeCR......this is for commission purposes chrState...
  14. M

    Simple Query Question

    Maybe this is because I'm completely new to this, but I'm not entirely sure what you mean. I understand the idea of the combo box with four fields. First you choose zip code and then it limits the choices in state and city respectively. I don't understand the bit about basing my form on a...
  15. M

    Simple Query Question

    Hmmmm I was originally going to try that, but had trouble with the cascading combo boxes. Upon entering the zip code, the combo box for the city would need to change. I couldn't get this to work either. Any suggestions or resources? Matt
  16. M

    Simple Query Question

    Simple Query Question (I'm admittedly a newbie) I have been looking for an answer to what I think is a simple question, but since I'm knew to this I don't think I've found an answer. I have a table (tblZipCode) that I imported that contains some 74,000 entries. This table has five fields...
  17. M

    Newdie Data Validation Question

    Let me clarify After reading what I typed out of frustration, I thought I should clarify a bit. Basically, what I want to do is this: Take the value that is in the text box and when the user tabs to the next field, I want to validate it. The value in the text box should be a value in a...
  18. M

    Newdie Data Validation Question

    Hello- I'm new to access and VBA, but I'm catching on quickly. I have what I think is i simple question, but I haven't been able to find an answer to it yet. I have multiple bound fields on a form that I would like to validate when the user attempts to move to the next field. I've tried...
Back
Top Bottom