I Want To Do A MINUS Operation Equivalent. How?
Jan 16, 2007
this is vexing me.
I have 4 tables, 2 entities, 1 relationship and 1 lookup
Entities are tblOrg and tblForm
Relationship is tblVentureParticipation
Lookup is tblInfo (Has many different lookups)
When an organization (these are listed in tblOrg) turns in a form, a new record is inserted into tblForm with the ID of that organization and the ID of the form
I want to identify the forms that have NOT been turned in.
So I figured
Step 1:
Identify all organizations who are participating (WHERE tblOrg.OrgID = tblVentureParticipation.OrgID)
Step 2:
Join all of the previously selected organizations with all of the forms (FROM tblOrg, tblInfo WHERE tblInfo.LookupID LIKE 'F##')
Step 3:
Remove all of the entries in tblForm that match the result of Step 2.
I have verified that both of these individual queries return the right information ...
View Replies
ADVERTISEMENT
May 20, 2005
Hi Folks!
Need help! Is there a BCP equivalent in access. I want to load 2 million rows into an access database.
Any pointers will be of great help.
Thanks,
Moksha
View 1 Replies
View Related
Jun 7, 2005
What is equivalent for Last function in access to that in SQLserver
View 1 Replies
View Related
Oct 12, 2005
Hi,
I have two access tables :
Table 1 : Customer number / E-mail
Table 2 : Customer number / Address / Phone
I like to add the data of table 1 to table 2 :
Customer number/ Address /Phone / E-mail
When of course the customer number is matching in both tables .
Can someone help me ?
Thanks
View 9 Replies
View Related
Sep 27, 2005
I need to use dlookup in a query to populate a new field "number" with values obtained using a current field "letter". I have a (lookup) table as follows: Col1 = A, B, C, D and Col2 = 1, 2, 3, 4 which of course gives the number code corresponding to each letter.
In Excel, I simply use the formula: vlookup("letter", "lookuptableref", 2, false) and it populates my new field number with the correct values.
Can anyone help me with the equivalent in Access using dlookup?
Thanks!
View 3 Replies
View Related
Nov 19, 2007
Hi all,
Sorry for such a Newbie question but....
I'm trying to find the equivalent of Filemaker's Lookup function within Access. To quote the Filemaker help page:
"A lookup copies data from another table into a field in the current table. After data is copied, it becomes part of the current table (and remains in the table from which it was copied). Data copied to the current table doesn't change automatically when the data in the other table changes.
To establish a connection between tables for a lookup, you create a relationship. Then you define a lookup to copy data from a field in the related table into a field in the current table."
The requirement for this is for an invoicing database where we need to copy a customer's invoice and shipping address into the invoice record so that, if the customer changes address, the old orders retain the actual address that was shipped to rather than be updated to whatever the customer's current address is. The same applies to many other things that fluctuate over time such as promotion discounts and list prices. When these change, looking back through old orders will give different prices than were actually invoiced. This must be a very common situation.
I've searched high and low on the web for an answer but so far have come up with nothing. A workaround might be to create the relationship then, when the customer ID (or product code etc) is changed, fire off a macro that copies the data from the related fields in the second table into the appropriate fields within the current table. If the Filemaker Lookup functionality is already present within Access it would be much neater to use that instead.
Any ideas?
Many thanks,
- Andy
View 2 Replies
View Related
Jan 10, 2008
Hello all,
I am trying to improve the network performance of my database and I need to convert the DCOUNT function into a SQL statement.
my code
=DCount("[Queue]","qryODFQueueNBET")
The tables are stored in the backend.
I have about 30 of the DCOUNT functions and it is really slow when running in the network.
Thank you,
View 1 Replies
View Related
Oct 16, 2013
I have got a combo box with a product code in it, and depending on which code is selected I want the data to come from one of two different tables. Is there any way I can do something like a match formula in Excel to see if the stock code is contained in a table?
View 3 Replies
View Related
May 26, 2005
I am an intermediate level Access user and I am trying to have one of my tables lookup data in another table and populate the corresponding data. For example, TABLE 1 and TABLE 2 both have a common field, MATERIAL field. TABLE 1 contains a SERIAL CODE field which is all the serial codes and TABLE 2 does not. I am trying to copy over the serial codes for 1000s of lines of data from TABLE 1 to TABLE 2 via the corresponding MATERIAL field. How exactly can I do this? Please be specific and do not leave any steps out if I need to enter functions, etc. Please tell me exactly where the process needs to be implemented.
Thank you very much in advance.
Ease
View 4 Replies
View Related
Mar 21, 2006
Hi,
I am setting up a query to display a records of products within certain sizes.
I want the width to be input, eg; "500" and i want all records - plus or minus 50 of this record to be displayed. I know i could use the "BETWEEN" "AND" command but i want the user to only enter 1 size if it is possible.
Any help greatly apreciated.
Thanks
Don
View 1 Replies
View Related
Dec 6, 2013
i'm using a sql procedure which i'd like to implement the equivalent in ms access. i want to know if they can be any possibilities. this is my procedure
Code:
CREATE PROCEDURE CreateOrders
(@cartId char(36))
As
DECLARE @CmdID int
INSERT INTO Commande DEFAULT VALUES
SET @CmdID = @@IDENTITY
INSERT INTO DetailsCommande ( CmdID, ProduitID, ProduitTitre, Quantite, CoutUnitaire )
[code]...
View 11 Replies
View Related
Sep 23, 2014
How can I convert a date format to it's numerical equivalent inside of a query? For instance, 1/1/2014 to be 41640.
View 2 Replies
View Related
Dec 19, 2014
I have a table with the folowing structure:
ID(integer)
Value1(Double)
Value2(Double)
I need to split this table in 4 equals parts:
- count of id must be equal or close to equal(ex: 467 split in 3 x 117 and 116) for each part
- the cumulated Value1 and Value2 must be equal or close to equal for each part
View 3 Replies
View Related
May 20, 2005
Hi
This is probaly really easy, I want to identify just minus figues in a query ie -5.00. I have tried iif([TotalPrice])<0,[TotalPrice]) this shows no result. Can any one advise. Thanks in advance.
View 1 Replies
View Related
Nov 15, 2005
Hi guys!
It's unknown for me why Access hasn't got MINUS implemented and Unmatched Query Wizard doesn't help me much. So I'm wondered if anyone had to confront the following task:
Table1
Book Agent
----------
b1 a1
b2 a2
b3 a3
Table2
Book Agent
----------
b1 a1
b3 a3
The problem is I have to eliminate duplicates but I need to find unique row, which is Book and Agent. From my example it's row with (b2 a2). I tried using
Select * From Table1
Where (Book, Agent) Not In (Select Book, Agent From Table2)
didn't work
I also tried EXISTS
didn't work
Unmatched Wizard compares only one field, not two.
Any comments welcome, thank you
View 2 Replies
View Related
Jul 11, 2006
To fill a ddl list I could use a MINUS query. I found out that UNION and UNION ALL work, but MINUS doesn't.
Is there a way to make it work, or maybe an other way to solve this kind of problem?
View 1 Replies
View Related
Mar 15, 2005
Hi,
I've searched this forum and can't quite get what I need.
I have a subform on a form, in the footer of the subform I total an amount owing field. Then I get the value from the footer control to the main form. I know that the total should be 0 but on the main form I get a -0.0119. How can I get this to show 0.
Thanks
View 1 Replies
View Related
Dec 19, 2014
I have a table with the folowing structure:
ID(integer)Value1(Double)Value2(Double)
I need to split this table in 4 equals parts:
- count of id must be equal or close to equal(ex: 467 split in 3 x 117 and 116) for each part
- the cumulated Value1 and Value2 must be equal or close to equal for each part
View 11 Replies
View Related
Sep 30, 2012
PRODUCT
VALUE A
VALUE B
WW
10
100
XX
20
200
YY
30
300
ZZ
40
400
I have above table in access. I want to use this table in query to find value of any product using a formula (Value A*X)+Value B. The product and X query picks up from another table. The same can be done easily in Excel using Index, Match formula but how in Access.
View 1 Replies
View Related
Jan 22, 2007
I've been using the following query:
SELECT
[qry_1].Month,
B_Division_Group.Grouping_Name,
Sum([qry_1].Month_Client_Count_from_B) AS Monthly_Count,
Sum([qry_1].Month_Assets_from_B) AS Monthly_Total,
Sum([qry_1].YTD_Client_Count_from_B) AS Yearly_Count,
Sum([qry_1].YTD_Assets_from_B) AS Yearly_Total
FROM
([qry_1] INNER JOIN tbl_branch
ON [qry_1].BranchCode = tbl_branch.BranchID)
INNER JOIN B_Division_Group
ON tbl_branch.BranchName = BDivision_Group.N_Br
GROUP BY
[qry_1].Month,
B_Division_Group.Grouping_Name;
While all monthly and yearly values were positive, the query produced exactly the results expected (i.e. one row of data for each Grouping Name/Month combination, containing the overall totals for each field).
Now, however, some Grouping Names have minus values and the query is showing an extra row (one for positive values, one for negative). It's as if having one or more minus values is being treated as a new Grouping Name/Month combination.
Is Sum() the correct method to use, when dealing with negative values, or should I be using some other function?
View 3 Replies
View Related
Jul 25, 2007
I am creating a report and I need data about parts that have not been used in the past 12 months. I'm not sure how to get just numbers from the past 12 months. How do I get the current date minus 1 year?
View 2 Replies
View Related
Dec 13, 2006
I have a datasheet subform that is acting like a timesheet. I have a TimeIn field and TimeOut field (both fields formatted as Medium Time); and a field for Hours to total the time. I used the expression =HoursAndMinutes([TimeOut]-[TimeIn]) that I found in another post, and it didn't work. All I got was #Name. Any thoughts as to why that's happening? I would preferably like the hours to total in tenths of hours, ie. 10.5.
Thanks
ScrmingWhisprs
View 6 Replies
View Related
Mar 4, 2015
So I am trying to setup a default value in the tbl design. The Following two fields are the two in question(StartDate & ReportDate). It already has relevant dates properly formatted in the StartDate Field. The ReportDate will always be the day before or minus 1 day from the Startdate. My question is that I can't seem to get the syntax right to make it work.
Screenshot included.
View 1 Replies
View Related
Mar 4, 2013
I have a report which is a statement. I want to be able to have a field that calculates rent, and minus payments. There are a few rent types, Pro Rated rent, Rent brought forward and rent changed, then there is 1 payment type. I am trying to write the sum a few ways, but have not had success. If rent type i= 1 or 2 or 3 I want it to add, if rent total = 4 I want it to minus.
=Sum(IIf([RentType]=1 Or 2 Or 3,[RentAmount],0))-Sum(IIf([RentType]=4,[RentAmount]))
View 2 Replies
View Related
Mar 10, 2014
Whats the best way to show the text result of a combo box selection when displaying the information through a query? I notice the table is also reflecting only the numerical ID result of the selection so I'm not sure how to take this result and display it as a text result to the user.
View 7 Replies
View Related
Jun 3, 2014
I am trying to sum a qty field naming it 'TotalRecieve' and then minus a qty from that sum?
I've tried the following
Code : RemainingQty: Sum([tblReceiveDetail].[QTY])-[tblOrderDetail].[Qty]
but i get an error saying 'Your query does not include the specified expression as part of an aggregate function?
View 2 Replies
View Related