User Profile

Collapse

Profile Sidebar

Collapse
Midzie
Midzie
Last Activity: Apr 13 '12, 10:14 AM
Joined: Jan 31 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to force a password change on first login in vba

    Hi Everyone,

    I have a code that auto generate a password for the newly created user. How do I make my small application to implement a force password change on first login without setting a default password. I don't use a default password because every newly created user has different auto generated password. Please advise, thank you very much in advance!
    See more | Go to post

  • Hi Smiley/Neopa,

    Thanks for the reply, my concern has been resolved. Thank you very much :-)
    See more | Go to post

    Leave a comment:


  • I double check the existing table and I found that those are empty values not null values. How do I handle empty values in lstbox?
    See more | Go to post

    Leave a comment:


  • Midzie
    started a topic How do I deselect null values from a list box?

    How do I deselect null values from a list box?

    Hi all, I have here a list box bound to my table Closed.Machine, but there are some null values from my table. So my list box have these values: ALL, ,01,02,03, and when I chose "null" the value next to it will appear in my report. Is there a way to exclude null values in my list box? If none, is there a way too that those records with null value from my closed.machine will appear in my query? Here's my code from my list box Row Source...
    See more | Go to post

  • Midzie
    replied to How do I Log Multiple Values in One Message
    Hi Neopa/ADezii,

    Earlier I made this code that's why it only returned and recorded 1; 1; 1; 1; 1; in my tblLog:
    Code:
    strRecord = strRecordOrder & strRecordSchedule & strRecordNote & strRecordYearly & strRecordClosed
    I added the conDelimiter and it is working now:-) Thanks to both of you. I still added this code to return the number of records deleted in a message box:
    Code:
    MsgBox CStr(db.RecordsAffected)
    ...
    See more | Go to post

    Leave a comment:


  • Midzie
    replied to Deleting records from multiple tables
    Deleting records from multiple tables

    Hi Neopa and Seth, thanks for helping me. My purging button is already working. I have a follow up question on this, which can be found at How do I Log Multiple Values in One Message.
    See more | Go to post
    Last edited by NeoPa; Feb 21 '12, 01:53 PM. Reason: Split new question away into separate thread and linked to it.

    Leave a comment:


  • Midzie
    started a topic How do I Log Multiple Values in One Message

    How do I Log Multiple Values in One Message

    This question was split away from Deleting records from multiple tables as we don't allow multiple questions per thread - NeoPa.

    I have a follow up question for Deleting records from multiple tables. I included a msgbox in every after the delete execution returning the number of records deleted in each table by inserting this code:
    Code:
    strRecordOrder = MsgBox(CStr(db.RecordsAffected) & " records from table ORDER were deleted
    ...
    See more | Go to post
    Last edited by NeoPa; Feb 21 '12, 01:50 PM. Reason: Split and adjusted

  • Midzie
    started a topic Deleting records from multiple tables

    Deleting records from multiple tables

    Hi All, first of all please don't delete my post... I need some answers on it that's why I posted a question here. If anyone there could help me please, I am deleting records from multiple tables but it doesn't work for me.

    Code:
    StrSQL = ""
    
    PurgeMsg = MsgBox("Do you want to purge data?", 1, "Purging Data")
        If PurgeMsg = 1 Then
            'delete from order
            StrSQL
    ...
    See more | Go to post

  • I think on my dates condition and ALL values of the two listboxes. When I select All it will display all the records regardless of the dates I set. Do I need to change my conditions?
    See more | Go to post

    Leave a comment:


  • Two listboxes with multiselection and Date Range Query

    Sample Records from table SLY
    TransDate Machine Person In Charge Type
    Feb. 7, 2008 BBAS Ashley B
    Feb. 8, 2008 BHAL Janelle C
    Feb. 9, 2008 ASCR Ness A
    Feb. 10, 2008 PLYR Jennifer D
    Feb. 11, 2008 KLMA April E

    Hi all, if anyone could help me please. I have here a form with a txtStartDate, txtEndDate, lstMachine – bound to SLY.Machine with union select “ALL” and lstType –...
    See more | Go to post

  • I just want to ask a follow up question, what if I add another listbox here for filtering records? Is it possible? Another is that if i select "ALL" in the listbox the filtering date range was disregarded, I mean it should find first all records within the date range before selecting "ALL" codes in the listbox. Let's say, i have records from Feb 1 t0 28, 2012 with codes from listbox A, B, C, D, E and ALL. If I set start date -...
    See more | Go to post

    Leave a comment:


  • Hi Smiley, it's working already. The error "Item not found in the collection" appeared because I didn't yet create a query "qrySLY" from query design. I created it and it's working already. I've chosen your first reply as the best answer. Thanks a lot!
    See more | Go to post

    Leave a comment:


  • Hi Smiley, I stepped into my codes and I noticed it skipped these codes and error "Item not found in this collection" appeared.

    Code:
    Set qdef = db.CreateQueryDef("qrySLY", strSQL)
      
    'Open the query, built using the In clause to set the criteria
    DoCmd.OpenQuery "qrySLY", acViewNormal
      
    'Clear listbox selection after running query
    For Each varItem In Me.lstWorkSLY.ItemsSelected
    ...
    See more | Go to post

    Leave a comment:


  • Querying Records in VBA MS Access using Date Range and multiselection in ListBox

    Hi All, if anyone could help me with my codes. I have a form with txtStartDate, txtEndDate, with a listbox lstWorkSLY and a cmdRunExtract button. I wanted to query records filtering txtStartDate to txtEndDate based on the items selected in lstWorkSLY. Here's my code, it is not working when I set Nov. 5, 2008 as my txtStartDate and Nov. 28, 2008 as my txtEndDate still all records with DateX June 1, 2008 to January 2009 appears as my output. I don't...
    See more | Go to post

  • Hi NeoPa/Smiley/ADezii - Thanks to all your efforts for helping me with my codes. More powers to all of you and to this website. To all beginners like me, let's keep on learning new things:-)
    See more | Go to post

    Leave a comment:


  • Yes, it is working already... I have read it, thanks. Here's the revised codes.

    Code:
     Public Sub Login()
     
    On Error GoTo ErrorHandler:
    'Check if data is entered in the Username textbox
        If IsNull(txtUsername) Or Me.txtUsername = "" Then
            MsgBox "Username is required", vbOKOnly, "Invalid Entry!"
            txtUsername.SetFocus
            Exit Sub
    'Check
    ...
    See more | Go to post

    Leave a comment:


  • I rearranged the codes and removed the exit sub on condition if strPass = "" and if strPass<>, I used If elseif endif on it and added intLogAttempt = intLogAttempt + 1 on each condition so that it will call the condition "If user enters incorrect password for 3 times database will shutdown"
    See more | Go to post

    Leave a comment:


  • Hi TheSmileyCoder, i still thank you for challenging me. Someday, I'll be a good programmer too, like you.
    See more | Go to post
    Last edited by NeoPa; Feb 3 '12, 04:36 PM. Reason: Removed unnecessary quote

    Leave a comment:


  • Hi TheSmileyCoder, thanks for helping me. I followed your instruction, I got what I wanted it's working already....than ks a lot. I'm glad that I am learning a lot here. God bless us all:-)
    Code:
    Private Sub cmdLogin_Click()
        Call Login
    End Sub
    
    Public Sub Login()
    On Error GoTo ErrorHandler:
        If IsNull(txtUsername) Then 'Check Username
            MsgBox "Username is required"
            txtUsername.SetFocus
    ...
    See more | Go to post
    Last edited by NeoPa; Feb 2 '12, 06:10 PM. Reason: Added mandatory [CODE] tags for you

    Leave a comment:


  • I'm sorry, what part of the code will I rearranged? Thanks.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...