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 gkittelson 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. StanJx

    Update List Box Automatically

    I need this to happen with out list box selection.
  2. StanJx

    Update List Box Automatically

    Hi, I have a unbound form with 2 list boxes lstReq (reqdate,reqtime,vehiNO,vehistatus) & lstVehi(vehiNO,vehiavail). I need to update lstVehi(vehiavail=false) automatically (Maybe on timer event) according to the data in lstReq according to certain criteria(reqdate=date,reqtime=time,vehiNO=is...
  3. StanJx

    DCount Multiple Criteria

    Thanks you.
  4. StanJx

    DCount Multiple Criteria

    Hi, I know this is an old thread but I hope someone will post an answer to my query. I have a table tblRequest where I have 3 fields RequiredDate VehicleNo & TeamSplit. I need to get a count in my forms code of to the selected RequiredDate and selected VehicleNo how much is the count of...
  5. StanJx

    Sending Email From Access Form Button Click

    I was able to get the below code working for me. But I am receiving an error message I have to allow every time I am sending an email. Any idea how to stop that message? Dim mailto As String Dim ccto As String Dim bccto As String mailto = "Test@test.com" ccto = "" bccto = ""...
  6. StanJx

    Sending Email From Access Form Button Click

    What would be the best way to do this then? I need to send an email on button click would really appreciate some help regarding this. I have to submit my project this Saturday.
  7. StanJx

    Sending Email From Access Form Button Click

    Hi I was searching for an option to send an email on a button click. I found the following code. But I am getting a compile error when I try to run the code. Please help!! http://www.tek-tips.com/viewthread.cfm?qid=1670887
  8. StanJx

    Filter Or Populate List Box According to Two Date Fields

    Hi, This maybe something simple but I couldn't figure it out yet . I have a list box with two date columns (EntryDate & RequestedDate). I need the list box to show records according to both dates. For Example Entry 1 EntryDate 9/12/2016 RequestedDate 9/13/2016 Entry 2 EntryDate 9/13/2016...
  9. StanJx

    Update Two Recods In Same Table

    Yeah I figured it out that plus I had spelled DrvID as DvrID and was trying to pass a string value on a number field (DrvID is a auto number) Once I figured the first part out the rest was simple. I set the WHERE parameter to the VehicleNo field and worked like a charm. Thanks for all your help...
  10. StanJx

    Update Two Recods In Same Table

    I checked the value with a debug.print the value seems fine. It doesn't update to the new value. I checked the SQL string as well. This too looks fine UPDATE tblDriver SET VehicleAvailable = -1 WHERE DvrID= PA-9788 ;
  11. StanJx

    Update Two Recods In Same Table

    Thanks for your response. I think the issue is the WHERE statement because the value is taken from the same field. I used TempVars to store that value temporarily from a textbox that is populated on a list click. I have made a change in the structure to have only one Yes/No field...
  12. StanJx

    Update Two Recods In Same Table

    I need to update two records of the same table (tblVehicle) during a button (cmdAssign) click. The record is selected from a list box and at the button click the currently assigned vehicle's info (vehiIn = True , vehiOut = False [Where = vehicleNo{Current}]) needs to be updated. And...
  13. StanJx

    Discard Form On Close Button

    Hi I have a form in which there is a close button (cmdClose). I want the prompt to request for Discard. If yes discard and close form. If No to Set focus to previous control. And if no change close the form. I am having trouble getting this to work. Would appreciate your advice. If Me.Dirty =...
  14. StanJx

    Having Trouble With Discarding Changes On Form, Access 2016

    Hi, I have a form called frmMaster. I am trying to apply a code when the form is closed mid entry or full entry, So that the user can discard the changes if necessary. I am having some trouble when the form is fully completed. It closes even though I give a vbNO option. Would appreciate some...
  15. StanJx

    Case Sensitive Password Check

    I realized that I hadn't defined the output.. It works fine.. Just had to set the output to false.. If Me.txtPassword.Value = DLookup("Password", "qryUser", "[UserID]=" & Me.cmbUserName.Value) And StrComp(Me.txtPassword.Value, Me.cmbUserName.Column(2), 0) = False Then
  16. StanJx

    Minimizing a Maximized form and Making it Maximized again on restore.

    I've tried that.. But because of the timer event being used for the requering.. I am not getting what I want.. I can minimize the screen and access fine.. but I can't seem to get the maximize on restore to work.. If I don't set the timer to Empty the form doesn't minimize. But when I do the...
  17. StanJx

    Case Sensitive Password Check

    Tried a code like this to no effect.. Is there a mistake with my code? If Me.txtPassword.Value = DLookup("Password", "qryUser", "[UserID]=" & Me.cmbUserName.Value) And StrComp(Me.txtPassword.Value, Me.cmbUserName.Column(2), 0) Then
  18. StanJx

    Case Sensitive Password Check

    I tried it with an AND function but I can't seem to get is to work. Here is what I tried out If Me.txtPassword.Value = DLookup("Password", "qryUser", "[UserID]=" & Me.cmbUserName.Value) And StrComp(Me.txtPassword, Me.cmdUserName.Column(2),1) Then Could you help me with the code a bit.. I would...
  19. StanJx

    Case Sensitive Password Check

    This is my current code for comparing passwords If Me.txtPassword.Value = DLookup("Password", "qryUser", "[UserID]=" & Me.cmbUserName.Value) Then But there is no case sensitive validation. Would appreciate some advise on how to add a case sensitive validation to this code.
  20. StanJx

    Minimizing a Maximized form and Making it Maximized again on restore.

    I have a form "frmMenu" which contains a sub datasheet form called "frmDashBoard". This form opens Maximized. I have added the following code to re-query that sub data sheet as it is a live update screen. Private Sub Form_Load() Me.TimerInterval = 1 End Sub Private Sub Form_Timer()...

Part and Inventory Search

Back
Top