User Profile

Collapse

Profile Sidebar

Collapse
muneermohd9690
muneermohd9690
Last Activity: Oct 14 '20, 06:03 PM
Joined: Oct 1 '20
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • can i audit my table when an excel sheet import is done?

    Code:
    Option Compare Database
    Option Explicit
    Private msaved As Boolean
    
    
    Private Sub Combo309_BeforeUpdate(cancel As Integer)
    
    If Combo309.Value = "HR" Then
        Call GetCount("HR")
            If hrcount = 10 Then
                MsgBox "you have already reached the limit, choose another department or will be assigned"
                cancel = True
    ...
    See more | Go to post

  • Restrict field selection based on criteria in ms access

    i have an employee table which has a field named department.i want the users to receive a message that no more employees can be assigned to this department because a certain limit has reached.the users will be using forms in ms access to insert the details.is it possible to do so using vba?

    What I have tried:

    i have created a query which calculates the current no of employees in department.the limit lets say currently...
    See more | Go to post

  • muneermohd9690
    replied to how to audit changes to a form
    link to download the database

    https://www.dropbox.com/s/kaw7j17bhe...111.accdb?dl=0...
    See more | Go to post

    Leave a comment:


  • muneermohd9690
    replied to how to audit changes to a form
    Code:
    Option Compare Database
    
    Public Function auditchanges(recordid As String, useraction As String)
    On Error GoTo auditerror
    Dim DB As Database
    Dim rst As Recordset
    Dim clt As Control
    
    Set DB = CurrentDb
    Set rst = DB.OpenRecordset("select * from audittrail", adOpenDynamic)
    userlogin = getuserlogon()
    Select Case useraction
        Case "new"
    ...
    See more | Go to post

    Leave a comment:


  • muneermohd9690
    started a topic how to audit changes to a form

    how to audit changes to a form

    I have an access database for employees.certa in users from manager level has access to this databse. I want to log any changes (add new,edit,delete ) to the databse using vba code.the users will be using forms to do the edits. I have tried using the below code,but the problem is that the below code works only for a standalone form. My forms contain sub forms and navigation forms.
    See more | Go to post
No activity results to display
Show More
Working...