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

Access very slowed down on windows 10. Please Help

$
0
0

Hello

I have Access 2010 application (.ade) linked to sql server by oledb. Many tables, forms, reports etc. It worked fine for many years. A few months ago my clinents start to report problems with performance. The program is working very slow (for example when I go to detailed form from list). It is always Windows 10 but not every PC. I think it has something to do with some windows update. Do You know the problem ? Is there any solution. I would be very grateful for your help 

Best regards
KubaChyl


Keeping date in form after update

$
0
0

I have form that has buttons that update data files. I have created a label on the form that records the last date/time the update was run for eact button.

I can set the value to the label to Now() when running the macro thatupdates, and the date/time is set on form.

However, when I close the form , all the set date/time values are lost.

Is there a way to keep the values on the form until the macro is run again, and sets the date time in the filed ?

Any help would be appreciated.

Thanks.

"The search key was not found in any record" importing spreadsheet to table

$
0
0

Getting this error. No clue what it means. Microsoft must win the prize for the most confusing and meaningless messages!

Trying to import 2 column spreadsheet to 2-column table. First column is a unique key. Would I get this if there are duplicates? Is that what this message is trying to say?

When I cancel the import, it deletes my table !!! Unbelievable.

SQL WHERE & WHERE NOT best practices - advice?

$
0
0

Hi Folks -

I'm just wondering if someone could advise on the best practices for a certain situation? I have the following query:

SELECT
 GI_DDU_Tempo_Activities_tmp.[Field1] AS [ActEmpFTE]
 ,GI_DDU_Tempo_Activities_tmp.[Field2] AS [ActEmpId]
 ,GI_DDU_Tempo_Activities_tmp.[Field3] AS [ActEmpLoc]
 ,GI_DDU_Tempo_Activities_tmp.[Field4] AS [ActEmpMgr]
 ,GI_DDU_Tempo_Activities_tmp.[Field5] AS [ActEmpName]
 ,GI_DDU_Tempo_Activities_tmp.[Field6] AS [ActEmpPos]
 ,GI_DDU_Tempo_Activities_tmp.[Field7] AS [ActEmpTaskCode]
 ,GI_DDU_Tempo_Activities_tmp.[Field8] AS [ActEMpTaskName]
 ,GI_DDU_Tempo_Activities_tmp.[Field9] AS [ActivityCode]
 ,GI_DDU_Tempo_Activities_tmp.[Field10] AS [ActPercentTimevalue]
 ,GI_DDU_Tempo_Activities_tmp.[Field11] AS [CompanyCode]
 ,GI_DDU_Tempo_Activities_tmp.[Field12] AS [DepartmentName]
 ,GI_DDU_Tempo_Activities_tmp.[Field13] AS [PersonnelSubArea]
 ,GI_DDU_Tempo_Activities_tmp.[Field14] AS [FunctionalArea]
 ,GI_DDU_Tempo_Activities_tmp.[Field15] AS [CostCenter]
 ,Project_portfolio.[PF_TherapeuticArea] AS [TA]
 ,GI_DDU_Tempo_Activities_tmp.[Field17] AS [ActPrjCode]
 ,GI_DDU_Tempo_Activities_tmp.[Field18] AS [ActPrjName]
 ,GI_DDU_Tempo_Activities_tmp.[Field19] AS [ActPrjType]
 ,GI_DDU_Tempo_Activities_tmp.[Field20] AS [ActProgram]
 ,GI_DDU_Tempo_Activities_tmp.[Field21] AS [ActProgramInitiative]
 ,GI_DDU_Tempo_Activities_tmp.[Field22] AS [ActTaskCode]
 ,GI_DDU_Tempo_Activities_tmp.[Field23] AS [ActTimevalue]
 ,GI_DDU_Tempo_Activities_tmp.[Field24] AS [ActWeekBeginDate]
 ,GI_DDU_Tempo_Activities_tmp.[Field25] AS [ActDescription]

FROM GI_DDU_Tempo_Activities_tmp, Project_portfolio
WHERE GI_DDU_Tempo_Activities_tmp.[Field22] = Project_portfolio.[Name]

However I also need it to return results where GI_DDU_Tempo_Activities_tmp.[Field22] DOES NOT EQUAL Project_portfolio.[Name]

Is it jsut as simple as putting in a UNION SELECT with the same query and changing it to

WHERE NOT GI_DDU_Tempo_Activities_tmp.[Field22] = Project_portfolio.[Name];

?


Thanks!

Recurring corrupted database

$
0
0

On a regular basis an Access 2013 gets corrupted and Compact and Repair fixes the problem.

Is there a way to investigate the reasons that are causing the corruption? 


#Deleted appears in dleted field before delete confirmation

$
0
0

Hello everyone, in my database below

I got "#deleted"appears in credit field (subform) when I try to delete levelID from tblYearLevel. However, it seems the delete process done properly, so should I worry about it? if yes, then how to fix. Many thanks.

Form Subform and dlookup question

$
0
0

I have a Access 2013 DB with a form that contains a subform.  I want to change the number of decimals to display on the subform when the form is loaded.

Let us say for example that the form is named "Parent"  and the subform is named:

"[9-CalibrationRecordDetailsChildNewRecordsubform"

  I have the following code in the load event for the parent.

    [9-CalibrationRecordDetailsChildNewRecordsubform].Form![Char1Value].DecimalPlaces = Me.DecimalsToDisplay

The Parent form has a field named "DecimalsToDisplay" which is displayihng correctly.

When the code runs, I get the following error on my line of code.

 

I have a feeling I need more in my dlookup statement, as I always have trouble referencing forms and subforms properly.

Lists from a form input

$
0
0
I have designed a form and would like to have a field where a I can enter a value (user name) and then have Access search a specified table and list all the rows that have that user_name in them.


Access form ignores its recordsource

$
0
0

Dear MS, 

I have a problem with a converted Access DB. 

The database was originally in Access 2.0 format and now it has been converted to Access 2007 format in multiple steps. 

Most functionality problem could be easily fixed, however, there is one problem for which I could not figure out any solution yet.

Some forms use query as their recordsource. When opening the form run-time the recordset is empty. When I run the same query alone, it is run correctly roducing the proper recordset. I also tried to alter the recordset on the form load event changing it explicitely but it did not work out well either.


The query contains a parameter gathered from a parent form so if the parameter is not present it pops up an edit box to fill. This is a good indicator for checking if the query is run, by not providing an value for the parameter.

The fact is, when I run the Descendent form without providing parameter, the form opens without asking for the value, using empty recordset. This makes me think that the recordsource query is for some reason not run when loading the form, though it should be.

I also tried creating a new form as a last solution, using the same query as a recordsource and it worked pretty fine. Still, I am hoping there is an easier solution for this problem, rather than recreating like 20 forms in my database.

Do you guys have any ideas?

Problem when read MSACCESS and uploading data to MSSQL- System.Data.OleDb.OleDbException (0x80040E14): Could not find field 'SID'.

$
0
0
Hello,

I have a C# program that uploads data from MSACEESS to MSSQL, sometimes on random tables I get an error: (this SID field doesn't exist on the tables I'm uploading and still I get thios error).

And if I'm uploading the same MSACCESS file again I don't get this error and its uploading well.

This is the full log:

15/08/2018 12:33:15.688|Info|Importer (495): starting to process table Payment. import type is 'small
15/08/2018 12:33:15.688|Info|Importer (495): table 'Payment' got primary 'PaymentID,OrderGuidID,OrderID'
15/08/2018 12:33:15.688|Info|Importer (495): invoking ReadSmallTableByType for 'Payment with type 'Orders'
15/08/2018 12:33:15.688|Info|AccessRepository: creating new connection to file 'E:\Uploads\Data_495_2018-08-15_1229.mdb'.
15/08/2018 12:33:15.696|Info|ReadDataJoinOrders for table 'Payment' took: 7ms
15/08/2018 12:33:15.699|Error|Importer (495): cannot read access table 'Payment' due to exception
System.Data.OleDb.OleDbException (0x80040E14): Could not find field 'SID'.
   at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr)
   at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
   at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.OleDb.OleDbCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Repositories.AccessRepository.<ReadDataJoinOrders>d__15.MoveNext() in D:\Github\private\Repositories\AccessRepository.cs:line 346
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Importer.<ReadSmallTableByType>d__69.MoveNext() in D:\Github\private\Importer.cs:line 1220
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Importer.<>c__DisplayClass62_0.<<AddAAADataAndInsert>b__1>d.MoveNext() in D:\Github\private\Importer.cs:line 1011
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Importer.<AddAAADataAndInsert>d__62.MoveNext() in D:\Github\private\Importer.cs:line 1018
15/08/2018 12:33:15.700|Info|Importer (495): AddAAADataAndInsert threw error. doing retry. error details: $
$System.Data.OleDb.OleDbException (0x80040E14): Could not find field 'SID'.
   at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr)
   at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
   at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.OleDb.OleDbCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Repositories.AccessRepository.<ReadDataJoinOrders>d__15.MoveNext() in D:\Github\private\Repositories\AccessRepository.cs:line 346
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Importer.<ReadSmallTableByType>d__69.MoveNext() in D:\Github\private\Importer.cs:line 1220
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Importer.<>c__DisplayClass62_0.<<AddAAADataAndInsert>b__1>d.MoveNext() in D:\Github\private\Importer.cs:line 1011
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Importer.<AddAAADataAndInsert>d__62.MoveNext() in D:\Github\private\Importer.cs:line 1024
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AAA.Data.Importer.<>c__DisplayClass37_1.<<ProcessTables>b__1>d.MoveNext() in D:\Github\private\Importer.cs:line 305
15/08/2018 12:33:15.700|Info|Importer (495): AddAAADataAndInsert failed for table 'Payment'. check previous log file rows for details.


running query

$
0
0
I am working with Access 2016, and as part of a form I have a listbox where the "row source" is  a query ie  SELECT tblFullName.tblsurname, tblFullName.tblforename FROM tblFullName;  I wish to run the query from an Event to populate the list box. The command I have used is listbox.requery. This does not seem to generate any data.   I just cannot seem to be able to run the query.  Any thughts. Many thanks.

Filter Combo box with Text box

$
0
0

Hello,
I'm searching the solution whole day,  I'm trying to make a task management database where there is a combo box field (status) for choosing status "not started" "in progress" "paid" "not paid" I also have a Field (not a combo box) Which is called Purchase order. 
My point is  IF Purchase Order field is null I want to filter Combo box  to limit the user not to choose "paid" so there will be a list  "not started" "in progress"  "not paid", If purchase order field is filled with data  I want combo box to show full list not to hide the "paid".

I cant make a relationship with Purchase order and Status 
Is there any solution? 
Thank you in advance.

ADP in Access 2016

$
0
0
I have a client who is using Access 2010 adp files to connect to a SQL server.  All I have available at the moment is Office 365, with Access 2016.  I can neither open the adp file, or import objects from it.  From what I've seen, Access 2013 can import objects from an adp file, but i don't have 2013 available.  Is there any kind of converter that will push the 2010 objects (forms & code mainly) to accdb format? Do I have any recourse other than trying to dig back through old dvd's looking for 2010 or 2013?

Mulltiple fields in Dlookup command

$
0
0

Can someone help with using multiple fields for Dlookup command.  Here is the current one which works:

lngdatafnd = DLookup("Series", "tblMfcMain", _

                    ("Series = '" & Me.SeriesName & "'"))

This is the one I want to use.  Also the YearCar is a numeric field.

lngdatafnd = DLookup("Series", "tblMfcMain", _
                    ("Series = '" & Me.SeriesName & "'") _
                And ("MakeCar = '" & cboMake & "'") _
                And ("Model = '" & cboModel & "'") _

                And ("YearCar = '" & cboYear & "'"))

  Thanx in advance.

Help: Comparing reports in the same field

$
0
0

Hi All

I have a table like below in which field3 is the calculating result from field1 and field2

Field1Field2Field3
123PK51123A
123PK55123B
123PK51123A
123PK56123C
123PK52123D
124PK52124A
124PK54124B
124PK54124B
124PK55124C
125PK58125A
125PK55125B
125PK59125C

The rule of calculation is: Firstly the new record in field1 that is different others will offer one result in field3 is always field1.A. In case record of field1 is the same, it will compare the record in field2. Base on that it will have the result in field3 as like above table. On excel I can do it but on access I really got stuck. no idea for this point. I hope everyone can help me solve this or instruct me how to do well. Thank you in advance.


TABLE STRUCTURE OF A HIGH BASIC FEES COLLECTION SYSTEM

$
0
0

Hi guys am new to Ms access, I am try building school database fees module using Microsoft access 2013. i want the to be able create and session{ year and term} to pave way for payment every term or semester or term. i am so stuck somewhere.

Thank in Advance. Any help will be appreciated very very much

Cannot Remove Password From Accdb Database

$
0
0

Access 2007
Windows 7 Ultimate x64

I created an accdb database and encrypted it with a password.  Now I want to remove the password.

I opened the database exclusively and entered the password.  The help instructions say:
2.On the Database Tools tab, in the Database Tools group, click Decrypt Database.
The Unset Database Password dialog box appears.

Unfortunate, the Database Tools group is displaying "Encrypt with Password" and clicking on that brings up the Set Database Password dialog box not the Unset Database Password dialog box.

Is this a known bug?

There is also an Encode/Decode Database in the Database Tools group but there does not appear to be anything in the help information about it. 
Decode Database results in a not found response and Encode Database retunrs a link to Encrypt a database by using a database password which refers to the "Encrypt with Password" section of the documentation which refers to "Encrypt with Password" in the Databse Tools group.

The only way it appears you can remove a password is to create a new unprotected database and import everything from the old one it.  Unfortunately, that leaves behind things like the layout of the Relationships window, all property settings, etc.

You cannot add or change a record because a related record is required in (Table)

$
0
0

Help, I'm a novice Access user - using Access 2013. I'm trying to create a form (BusinessInfo) with a button to access another form (ContactInfo). The ContactInfo form has a subform (PhoneInfo).

The Top level form contains data from a Business table - Business name, address, etc. the unique key field is BusinessID.

The ContactInfo has Contact Data - First Name, Last Name, type, etc, plus BusinessID (Number) as a foreign key. I have created a relationship between the two tables BusinessInfo (One) to ContactInfo(Many) and enforced referential integrity.I've added a button to the BusinessInfo table that opens the ContactInfo form. When I complete entering name and contact type - I get the error above "You cannot add or change a record because a related record is required in BusinessInfo table.

I know its something simple... but I'm stumped

How to convert a SUMIFS function in Excel into MS access function

$
0
0

Basically I am trying to replicate what is there in Excel into access.

In Excel I have function for one column

=SUMIFS('Sheet1'!T:T,'Sheet1'!$G:$G,$F5)

How can I achieve it in access

Access 2016 charts

$
0
0

I created a number of charts in access 2010, they stopped working in access 2016 ms 365.  The Charts don't work like they did with 2010, I can't get the line chart to display the data with RowHeading: DateC, Column: CType, PD: First(PD), and display each Ctype as a line connecting the PD values over DateC date/time.  

The data and query are below, I've tried access 2016 line and stacked chart, but I can't seem to assign the CType as a column.  Just one series at a time.  

How can I get all the dates with multiple series to plot?  Can I reference a different library?

DateC,CType,PD
1/11/2018 0:00,FlowMPC,0.12
1/17/2018 0:00,FlowQC,0.97
1/31/2018 0:00,FlowQC,1.64
2/13/2018 0:00,FlowQC,0.78
2/27/2018 0:00,FlowQC,1.59
3/14/2018 0:00,FlowAudit,DAQ,3.09
3/15/2018 0:00,FlowQC,2.90
3/15/2018 12:08,FlowMPC,-0.30
3/29/2018 0:00,FlowQC,0.97
3/29/2018 0:00,FlowMPC,0.06
4/10/2018 0:00,FlowQC,-0.18
4/10/2018 0:00,FlowMPC,0.06
4/23/2018 0:00,FlowQC,11.33
4/23/2018 1:00,FlowQC,0.00
4/24/2018 0:00,FlowQC,1.21
5/7/2018 0:00,FlowQC,0.12
5/18/2018 0:00,FlowAudit,-0.35
5/21/2018 0:00,FlowQC,0.42
5/31/2018 0:00,FlowQC,0.18
6/12/2018 11:37,FlowQC,0.48
6/21/2018 0:00,FlowAudit,DAQ,0.72
6/27/2018 0:00,FlowQC,-0.54
7/3/2018 0:00,FlowQC,1.09
7/3/2018 0:00,FlowMPC,0.12
7/6/2018 0:00,FlowQC,0.18
7/19/2018 11:02,FlowQC,0.54
8/2/2018 11:34,FlowQC,1.15
8/15/2018 15:47,FlowQC,0.24

TRANSFORM First(qChart.pd) AS FirstOfpd
SELECT qChart.DateC
FROM qChart
GROUP BY qChart.DateC
ORDER BY qChart.DateC
PIVOT qChart.CType;


Viewing all 14673 articles
Browse latest View live


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