Quantcast
Channel: Access for Developers forum
Viewing all 14673 articles
Browse latest View live

Run Time Error 3043 Network access interrupted

$
0
0

2012 R2, Dell PowerEdge, Windows 10, 1903 PCs, Access 2016 front ends local on PCs, back ends on server

Small network with  4 - 6 active Access users

Errors are random (multiple PCs and users, no specific user action before error) but almost always occur after users have been logged into application for more than an hour, frequently after users have not executed an application function for a period of time

PRTG and Spiceworks monitoring does not show any unusual activity around the time the errors occur- no processor or network activity spikes

Mostly presents as Access Run Time error 3043 "Your network access was interrupted ..." but appears to also cause other run time errors with no apparent cause


The Microsoft Access database engine could not find the object ''. Make sure the object exists and that you spell its name and the path name correctly. If '' is not a local object, check your network connection or contact the server administrator.

$
0
0

Hi ,

I am trying to access the excel from sharing drive and having permission.

But i am getting below this error:

The Microsoft Access database engine could not find the object ''. Make sure the object exists and that you spell its name and the path name correctly. If '' is not a local object, check your network connection or contact the server administrator.

Please let me help what needs to be done for this issue resolving

Looser.


Regards, Looser.

How to go around the error 3073 (operation must use an updatable query)

$
0
0

Hello all,

I need to update 2 fields from one table with 2 diferent sums of fields of another table. The tables are linked on a one-to-many relationship and the update tries to work on the "one" side of the relationship (not on the key field). This need resulted after an imprevemet made in the database.

I need a generic solve, to understand how such an operation is done. The actual situation is not important!

Thank you very much

Reserved Error (-3004)

$
0
0

I am getting this message when trying to open a datasheet with a sub datasheet in my Access 2013 database.  The relationship is one-to-one:

Reserved Error (-3004); there is no message for this error

Is there anyone who can present some information regarding this error?  I am unable to find any information.

Thanks.

Pat

Access & Navigating IT departments - career advice needed

$
0
0


Greetings all.  I'm seeking advice on how to navigate IT departments who are dismissive of, unfairly demonize and disallow use of Access.  One specific question I have is whether there exists any sort of way I can get some sort of "Microsoft approved secure" designation for applications built using Access.

Here is my bigger story.  I an a software engineer and department manager with a Masters Degree in Computer Science (from 1990), 25 years running a software business with applications built in Access, and extensive experience building applications that have automated a university department.  In my current job, I am in the process of automating another department.  The work I have done has transformed the ways these departments do work, and I have won awards attesting to this fact.

Many years ago at the start of my career I wanted to start my own business writing software to automate jewelry stores.  I started building an application using dBase.  But then I read that Microsoft was coming out with a Windows-based relational database system.  I stopped the dBase development and bought MS Access the day it came out, and have literally been using it ever since.  I have created and implemented serious software development methodologies within the Access platform (VBA, version control, split dashboards/data with ODBC connection to MySQL and SQL Server backends, etc).  I design my applications very conscious of security -- I use compiled accde versions of the program, I password-protect and encrypt, and am always aware of what I am doing and the security ramification and code accordingly.  

Since leaving my own business and starting to work in a large, university setting, I have hit the unfortunate experience of IT departments, when learning what I am doing at department levels, saying from the very top "there shall be no use of MS Access, it is insecure" .. and then they do not take the time and have the curiosity to speak with me and see at all the measures I have taken to keep things secure and the value my applications bring to the table.   They just say 'not allowed'.

I have learned that IT departments' bias against MS Access has much to do with the way Microsoft markets the product: using MS Access regular office staff can create their own databases.  Then human resource departments give office staff a 1/2 - 1 day training course in Access.  They go back to their offices and try to build something... it might work for a little while, but inevitably they hit something where they get stuck.  Because -- let's face it -- building relational databases can get very conceptually difficult and it is not the sort of undertaking that a typical office staff member is equipped to do.   When they get stuck, they call IT departments, and IT gets very upset with Access since they do not feel this should be their job -- and then they say things like Access is not allowed.  Plus, they make blanket statements declaring Access "insecure" without looking at the specifics of how I have things architected, making the chance of any security problems infinitesimally small.

As you can imagine, this has really roadblocked my career.  I have been using Access since the day it came out in the early 90s and I'm probably one of the best in the world at knowing how to use it.  But I am repeatedly trying to navigate the resistance of IT.

I would love to hear the experiences of others and what was done to counter this sort of resistance.

Thank you,

Alyssa Siegel

 


Kill a File

$
0
0

I have a form with a webbrowser control. Its data source is a text box. I use a combo to open a file dialog and chose a pdf file. The path and file appear in the text box and thus opens in the webbrowser - works great.

I then copy/rename the open file to another folder...again works great.

Then I want to delete the original file (The one open in the webbrowser)...but I get 'permission denied (#70).

I have written code that disables the webbrowser prioIr to the kill command...still permission denied

I have inserted code that closes the actual form the webbrowser is on prior to the kill command...still permission denied

I'm not looking for someone to write my code for me...just a nudge in the correct direction regarding how to accomplish deleting the file programmatically...Thanks

Access 365 is what I am building in

Access 2016 - Edit 'Excel Saved Import'

$
0
0

I have created a Saved Import relating to the importation of a Excel Spreadsheet. I wish to step in to the saved import and look at the steps it has saved etc.

I can't find any way to do this with Access 2016 and would appreciate some assistance with this

Thank you

Toni 

 

TC Toni Carrera Senior Data Manager

how to release storage space to prevent error 3035 and 3183

$
0
0

I have an access database with subroutines that want to add thousands of large records to a certain table.  It uses parameter queries to add these records, and runs out of memory, causing the database to be corrupted.  An earlier version of the program used a recordset using .addnew to add the queries, and this method also fails in the same way.  How can I avoid this apparent memory leak?

Thanks, William Rowan


Replace sub for MSCAL with date picker in accdb 216

$
0
0

Hi,

I switched to new PC with Win 10 and MS Office 365 (2016) from Win 17 and MS Office 2003. II convert a mdb database to accdb. In accdb I removed a reference missed reference to MSCAL, and nor there are no complaints to missing MSCAL.

In accdb I  have several forms with textboxes in date format. The boxes have how date picker and date properties set, so on pen form the current date is are displayed in boxes data pickers activated on clicks, date changed and displayed in boxes. So far so good.

But I had a several MSCAl subroutines for each of boxes like that

Private Sub Calendar0_Click()
    If Calendar0.Value > Date Then
       Calendar0.Value = tbDate.Value
       MsgBox "Days beyond today are not allowed!" & vbCrLf & "Select today's or one of past days!"
    Else
        tbDate.Value = Calendar0.Value
        tbDate.SetFocus
        Calendar0.Visible = False
    End If

This is for not selecting the future days. Calendar0 is for MSCAL Control.

I need to write a similar procedures for Access Datepicker. But I do not know how to declare a DtePicker variable, what event function to use, and an API to use. I tried but with no success. Te original mdb files was written 9 years ago

Any help will  appreciated

The search key was not found in any record error

$
0
0
I have a dbase 3 database that I am trying to import into Access 2007. I get an error "The search key was not found in any record." I didn't have this problem with any other table I tried importing and I need this table. I was able to link this table in access but that doesn't really help me. How can I solve this problem.

Debra has a question

Center Text In a Listbox in Access 2013

$
0
0

I am trying to center text in a Listbox in Access 2013.

There does not appear to be any text align option in the properties for the listbox.

I have not been able to find an example on line that will open in Access 2013, only a 'justification' example that does not open.

I have tried changing to 'text mode' in the Options, Client Settings, 'General Alignment' option, converting the listbox to a combo box, changing the text align property to center, converting the combo box back to a listbox. However, the text remains left aligned.

Any ideas?

Thank you


Nath

32bit --> 64 bit object not found

$
0
0

we have to migrate from 32 bit to 64 bit version.

i do not have any experience with that and i heritated the database and i'm looking for help

this is the code

 
Function GetEmailFromNonDefaultInbox()
    Dim myOlApp As New Outlook.Application
    Dim myNameSpace As Outlook.NameSpace
    Dim myInbox As Outlook.MAPIFolder
    Dim myitems As Outlook.Items
    Dim strFilter As String
   
    Dim ns As NameSpace
    Dim Inbox As MAPIFolder
    Dim SubFolder As MAPIFolder
    Dim Item As Object
    Dim Atmt As Attachment
    Dim FileName As String
    Dim MyDocPath As String
  
    Dim wsh As Object
    Dim fs As Object
    Dim TempRst As DAO.Recordset
    Dim rst As DAO.Recordset
 
  
    Set myAccounts = myOlApp.GetNamespace("MAPI").Stores
    For i = 1 To myAccounts.Count
      
        If myAccounts.Item(i).DisplayName = "Bxxxxx" Then
            Set myInbox = myAccounts.Item(i).GetDefaultFolder(olFolderInbox)
            Exit For
        End If
    Next
    
 
 Set db = CurrentDb
    Set TempRst = CurrentDb.OpenRecordset("myfile")
    
    Set ns = GetNamespace("MAPI")
    Set Inbox = myAccounts.Item(i).GetDefaultFolder(olFolderInbox)
    Set SubFolder = Inbox.Folders("Bxxxxxsubfolder")

' rest of the code
end function

and i get this error in this line : 

Set SubFolder = Inbox.Folders("Bxxxxxsubfolder")

Long refresh when VBA editor in Access is active

$
0
0

I have tried to search the forum for an answer on this question, but failed. So here is my question:

As soon as I open the VBA editor in Access 2019 access starts to update (refresh) it self more and more often and it takes longer and longer time. After (maybe an hour) it is only possible to write 5-10 characters (!) before an refresh sequence starts and I have to wait for a long time (30 seconds) before I can write my next 5-10 characters. The only way to make the situation better again is to close Access and restart the computer. Then the refresh times starts with a longer time intervall again (but after an hour the same again). Only closing Access and opening it again does not improve the situation. This bad behavior started during this fall before that everything was okay. It seems like Access is storing a copy somewhere and desperat  trying to update the copy. 

Anyone who recognize this behaviour and know how to fix it?

Comparing records to find like orders

$
0
0

I have an order table that contains what was on an order and which company ordered it along with other fields like who ordered it at the company, date, qty, etc.

I would like to do a compare of orders to find similar or same orders between companies and potentially who ordered them. If I have companies that order very similar products with slight deltas I could identify them for similar marketing campaigns. Similarly if certain employee job titles order similar items across companies I could market net products or promotions more effectively.

If anyone could point me in a direction to investigate how I could query the table to find similar ordering habits I would greatly appreciate it.

How to write code to create many fields (and other questions)?

$
0
0

I have not used Access for years, not quite familiar with Access anyway.

I am actually asking for code(one question forEmployeeSelfEntryNote& five questions for SummaryView), but any other project design suggestion is welcome too.

I want to design three tables: Employees, EmployeeSelfEntryNote, SummaryView

Table Employees: I will manually update this table periodically.

Table EmployeeSelfEntryNote: Every employee can enter one note for each day, via a Form. If the employee previously submitted note for the same date, then the new note will overwrite the previous note. I may need to write code for the feature of overwriting.
  1. How to check if the note already exists for that date. If yes, overwrite the note; if not, add the new note.


Table SummaryViewMy main questions are related to this table. Let us say, now the table has already fields: EmployeeUserID, FirstName, LastName, 12/13/2019 Fri, 12/14/2019 Sat, 12/15/2019 Sun, 12/17/2019 Tue, 12/18/2019 Wed. The first three fields(EmployeeUserID, FirstName, LastName) will always remain. EmployeeSelfEntryNote will be shown in SummaryView table, that is the whole purpose of project. This is just sample table for me to post this thread, I actually will create something to let employee to filter date range(begin date & end date) for SummaryView.

If I want to the fields to cover date from 12/12/2019 to 10/15/2020, then how to write code to add so many fields? I actually can break my questions into Five parts:
  1. How to delete any fields(an associated data) except EmployeeUserID, FirstName, LastName, this will delete 12/13/2019 Fri, 12/14/2019 Sat, 12/15/2019 Sun, 12/17/2019 Tue, 12/18/2019 Wed
  2. Refresh SummaryView table with Employees table. At this point, SummaryView table has only three fields, and I want the SummaryView records to be same as Employees table. Not sure if I can do this in Table relationship or programming.
  3. Add fields(data type: short text) to SummaryView: 12/12/2019 Fri, 12/13/2019 Sat, 12/14/2019 Sun, ...... , 10/13/2020 Tue, 10/14/2020 Wed, 10/15/2020 Thu
  4. How to write code to loop through EmployeeSelfEntryNote to pull Note into SummaryView table. Employees are not required to submit Note for each day.
  5. In the future, if I want to delete any fields before 3/18/2020 Wed, how should I write the code?


Thanks.



Access to backend Sql server 2008 to 2017

$
0
0
I have an Access front end linked to SQLServer2008 and am trying to migrate to a new windows server/ SQLServer2017. I have restored my database/tables on the new server but cannot link the tables from Access to it. I've tried to relink the tables/views in Access using the link manager and also using an ADOConnect String. In both cases I get an error that 'the server does not exist or access denied'. I've loaded a new SQL Server Driver (ODBC Driver 17 for SQL Server), I've looked at file permissions, I can ping the new server from my windows Access front end machine and I've compared the setup parameters of the two servers and SQL Server instances but so far having no luck with the connection.

Problem runing Access 2016 query Defs

$
0
0


Hello, I am not a programmer I appreciate assistant with this. Using access 2016 and running several query to get the data. Setting ADO as a reference. Trying to get just one field 2 digit number and show it on a open form txtReviewScore.

Dim dbs             As Database    'current database
Dim rst             As Recordset   'holds query Defs
Dim qdf             As QueryDef
Dim sQueryScore     As String

Set dbs = CurrentDb()

'DoCmd.OpenQuery "qryPpsScore", acViewNormal, acReadOnly

'run query Defs
Set qdf = dbs.QueryDefs("qryPpsScore")


sQueryScore = "SELECT qryPpsTotal.Convert FROM qryPpsTotal;"

Set rst = qdf.OpenRecordset(sQueryOnsite)
'MsgBox sQueryScore

txtReviewScore = rst.Fields("Convert").Value



JayZ

Compact and repair: Could not find MSysComplexColumns

$
0
0

I am attempting to compact and repair a local Microsoft Access 2016 database that is being used as a back-end. Nine out of 10 times, the compact and repair process gives this message: The Microsoft Access database engine could not find the object ‘MSysComplexColumns’. I am not certain, but I suspect that the compact and repair has failed at that point and does not complete properly. 

MSysComplexColumns does exist in the database.  It had two records: one for the Data field in MSysResources related to an office theme, and the other was for an attachment field in one of my tables. I removed the attachments from my table, then removed the attachment field from that table. Now MSysComplexColumns only has the record for MSysResources.  A compact and repair continues to display the same error.

I cleared all the data from all of the non-system tables and did a compact and repair. The error did not occur in this case.

I created a new database and, using VBA code, recreated all of the tables, relationships, and indexes, and then moved the data to the tables in the new database. When I did a compact and repair, I got the same error message again.

I cannot find anything on the internet about this issue.  Can someone shed some light on this for me?

https://america-miss.com/

$
0
0
https://america-miss.com/
https://america-miss.com/live
https://america-miss.com/2020

How to delete fields from a table expecting some fields?

$
0
0

I have posted a thread yesterday, which has too many questions. It basically lists all major questions regarding my project, and it is not quite helpful for me to get answer. It is also too much for people to read whole thread and understand the whole project.

In stead, I am asking one small question at a time. As I move on with the project, I will ask other questions at later time (one question at a time).

Now here is my first question: if I have an Access table tblTest, and there are some fields: EmployeeUserID, FirstName, LastName, FieldNameA, FieldNameB, FieldNameC, .....

I don't know how many fields are in the table, but those three fields (EmployeeUserID, FirstName, LastName) are definitely in the table. I am not familiar with Access VBA, but below is the logic for my code. I want to delete any fields excepting those three fields.

Is there anything I need to fix?

Thanks.

Dim fld As DAO.Field
Dim db As DAO.Database
Dim strDrop

Set db = CurrentDb

For Each fld In db.TableDefs!tblTest.Fields
    If fld.Name <> "EmployeeUserID" Or fld.Name <> "FirstName" Or fld.Name <> "LastName" Then
        strDrop = "ALTER TABLE [tblTest] DROP COLUMN [" & fld.Name & "]"
        db.Execute strDrop
    End If
Next

Viewing all 14673 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>