Results 1 to 6 of 6
  1. #1
    ChobeyGuddu is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2016
    Posts
    29

    Split Database Backend Table Deleted

    HI
    I have a database which is Split between front end and backend.

    Because of some reason while accessing from front end forms- backend table gets deleted (all records deleted and table is blank now)

    Any idea the reason for the same
    Any fixing tips or anything that can help resolving it happening again ?



    Please help
    Guddu.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Sounds like some deleted the records in the back end table.
    Are the other BE tables OK?
    May have to reload your data for the table from your most recent backup.
    Review any/all forms that interact with the "table" and see if there is a bad command/event/code involved.

    Test the form vigorously before moving on.

    Good luck.

  3. #3
    ChobeyGuddu is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2016
    Posts
    29
    Quote Originally Posted by orange View Post
    Sounds like some deleted the records in the back end table.
    Are the other BE tables OK?
    May have to reload your data for the table from your most recent backup.

    Good luck.
    Hi
    Yes Other tables are ok - its just one table (actually its a Login details table) - not a datatable which has form based on.

    So, something strange happened and Login table deleted ?

    Thanks
    Guddu

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Can you show some form event code that interacts with the "login" table?

  5. #5
    ChobeyGuddu is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2016
    Posts
    29
    Here you go :

    This is for Main Database LOGIN :

    Option Explicit
    Option Compare Database
    Dim rs As New ADODB.Recordset
    Dim cn As New ADODB.Connection
    Dim sql As String
    Private Sub btnlogin_Click()
    If cn.State = adStateOpen Then cn.CLOSE
    Set cn = CurrentProject.AccessConnection
    sql = "select * from tbUser Where Username= '" & txtUserName.Value & "' And Password= '" & txtPassword.Value & _
    "' order by ID"
    If rs.State = adStateOpen Then rs.CLOSE
    With rs
    .CursorLocation = adUseClient
    .CursorType = adOpenDynamic
    .LockType = adLockOptimistic
    .Open sql, cn, , , adCmdText
    End With
    If Not rs.EOF Then
    DoCmd.OpenForm "MainDashboard"
    DoCmd.CLOSE acForm, Me.Name
    Else
    MsgBox "Please try again! or Fill in the Access request form and Send an email to Nisarg Shah (nisarg.shah@mbnl.co.uk) for access permission"
    End If
    End Sub
    --------------------------------------------

    This is for ADMIN LOGIN :

    Option Explicit
    Option Compare Database
    Dim rs As New ADODB.Recordset
    Dim cn As New ADODB.Connection
    Dim sql As String
    Private Sub btnlogin_Click()
    If cn.State = adStateOpen Then cn.CLOSE
    Set cn = CurrentProject.AccessConnection
    sql = "select * from tbUser Where Username= '" & txtUserName.Value & "' And AdminPassword= '" & txtPassword.Value & _
    "' order by ID"
    If rs.State = adStateOpen Then rs.CLOSE
    With rs
    .CursorLocation = adUseClient
    .CursorType = adOpenDynamic
    .LockType = adLockOptimistic
    .Open sql, cn, , , adCmdText
    End With
    If Not rs.EOF Then
    DoCmd.OpenForm "ADMINPAGE"
    DoCmd.CLOSE acForm, Me.Name
    Else
    MsgBox "Access Denied"
    End If
    End Sub


    -----------------------------------------------

  6. #6
    ChobeyGuddu is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2016
    Posts
    29
    Hi all,
    Does anyone know any particular reason for backend table deleted from accessing database from frontend?

    Thanks,
    Guddu

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Split Database Backend table delete records automatically
    By ChobeyGuddu in forum Database Design
    Replies: 5
    Last Post: 01-30-2017, 02:26 PM
  2. Link split database backend to another?
    By Cratebug in forum Access
    Replies: 5
    Last Post: 02-11-2016, 04:02 PM
  3. Multi Users on backend of split database
    By Tammy in forum Database Design
    Replies: 10
    Last Post: 12-16-2014, 01:56 PM
  4. Problems accessing split database backend
    By DG2012 in forum Access
    Replies: 7
    Last Post: 11-20-2014, 06:22 PM
  5. Deleted records by mistake from a split database
    By jasonoleary72 in forum Access
    Replies: 2
    Last Post: 03-28-2013, 02:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums