ms-access-2010

Referencing field values between queries

↘锁芯ラ 提交于 2019-12-31 05:18:11
问题 Im trying to create a calculation in Access through the use of queries. At the moment one query calculates the value of 'MPP Oil' (max production potential) and another query needs to use this value to calculate 'Unallocated losses'. These calculations use company/asset/year data from a base query 'PEBaseQuery'. Other input values to calculate Unallocated losses are referenced using IDs... There seems to be something off with my code though, please help! SELECT qb1.CompanyName, qb1.AssetName,

SQL - Check if data exists on either table

北战南征 提交于 2019-12-31 04:35:28
问题 I have two tables in my database regarding the login details for both of my users (Librarians and Students) I have separated the user's details into 2 separate tables tblUserLibrarian and tblUserStudent; one for the Librarians and one for the Students. The Primary key in each table is the username or ID (LibrarianID and StudentID). Outline of the tables are like this: tblUserStudent StudentID Password FirstName LastName S1201235 pass3 Jane Smith S1201289 pass5 Pass Word S1202009 pass2 John

Maximum Length of a SQL Query in Microsoft Access 2010?

房东的猫 提交于 2019-12-31 03:26:28
问题 Attempting to copy/paste a 159KB TSQL query into Microsoft Access 2010 passthrough query editor (to a Microsoft SQL Server 2008 backend). This produces pop-up error, "The text is too long to be edited". What is the maximum length of a query in Microsoft Access 2010? 回答1: The help file says that the maximum number of characters in a SQL statement is approximately 64,000. It doesn't mention any difference between pass through queries and other queries, so in the absence of any specific

MS Access database (2010) how to create temporary table/procedure/view from Query Designer

﹥>﹥吖頭↗ 提交于 2019-12-30 23:06:16
问题 Is there any way how to create temporary table/view/stored procedure in MS Access database (2010) using Query Designer? Whenever i try to execute something like this: SELECT * INTO #temp_table FROM (SELECT column_1, column_2 FROM table) MS Access throws an error: Syntax error in CREATE TABLE statement. With no further information. 回答1: Access SQL does not support executing more than one SQL statement at a time, so the notion of a #temp table does not really apply. If you require a temporary

SELECT TOP 1 is returning multiple records

…衆ロ難τιáo~ 提交于 2019-12-30 19:56:36
问题 I shall link my database down below. I have a query called 'TestMonday1' and what this does is return the student with the fewest 'NoOfFrees' and insert the result of the query into the lesson table. Running the query should help explain what i mean. The problem im having is my SQL code has 'SELECT TOP 1' yet if the query returns two students who have the same number of frees it returns both these records. Wit this being a timetable planner, it should only ever return one result, i shall also

SELECT TOP 1 is returning multiple records

北战南征 提交于 2019-12-30 19:56:27
问题 I shall link my database down below. I have a query called 'TestMonday1' and what this does is return the student with the fewest 'NoOfFrees' and insert the result of the query into the lesson table. Running the query should help explain what i mean. The problem im having is my SQL code has 'SELECT TOP 1' yet if the query returns two students who have the same number of frees it returns both these records. Wit this being a timetable planner, it should only ever return one result, i shall also

copy formatted text into access using vba

爷,独闯天下 提交于 2019-12-30 08:33:31
问题 I need to save formatted text from Word in an Access Database. So far I've managed to figure out how to store formatted text in an Access Field (Create a Memo Field in a Table and set the Text Format as Rich Text). Searching SO I have not yet come across a solution as to how to transport said text from word into Access. I know that it is possible, because you can do it by simply copying and pasting the information if you are doing it manually. My question, how can I copy formatted text from

How can I add a certificate to VBA Access project if the Digital Signature item doesn't appear in the Tools menu?

不打扰是莪最后的温柔 提交于 2019-12-30 07:09:08
问题 I am trying to get an Access 2000 database to run in the Access 2010 runtime and remove the warning dialog about the file not being trusted. I have done some research and discovered the SelfCert.exe program. This is a good tutorial on certificates. And this, too. Even Microsoft had instructions for Access 2000 indicating that this menu item should exist. However, my Tools menu in the Access 2000 VBA IDE does not have the Digital Signature menu item. What's worse is that when I right-click on

MS Access SQL LIKE query from C#

狂风中的少年 提交于 2019-12-30 06:54:30
问题 I have this query for Ms Access and im using C# and Ole DB commands. It works on Ms Access but when I'm passing the query from C# using OleDB, nothing happened. Anyway here's my code: SQL query SELECT * FROM tblIssue WHERE id LIKE '*2*' AND dateChecque LIKE '**'AND + issueTo LIKE '**' AND byTheName LIKE '**' AND bankName LIKE '**' AND accountNo LIKE '**' + AND checqueNo LIKE '**' AND amount LIKE '**' AND being LIKE '**' AND whoDeleted LIKE '**' + AND whyDeleted LIKE '**' AND dateCreated LIKE

MS Access 2010 Running Total in Query

偶尔善良 提交于 2019-12-29 01:29:06
问题 I am not a big Access fan but for this project I was asked to create an Access database. I created something similar for other database types so it wasn't too difficult. I have most of it figured out but the running totals are racking my head. I have the table below: table name attendanceView Query: SELECT * FROM attendanceView ====================================================================================== agentID | incurrredDate | points | OneFallOff | TwoFallOff =====================