I Need Numbered Letters To Compare And Subtracted Themselfs.
Dec 14, 2004
I have a inventory list that i export from another programe
it exports the lines like so:
ITEM DESCRIPTION PRICE QUANTITY (this line does not get exported)
1021 60BL+40PI+20SL 11$ 120
1022 50BU+30SL+10BZ 8$ 90
CR5415 50BZ+50BL+50SL 5$ 150
Now the program only calculates the quantitys when a order is submited into it.
it does not subtract the quantity on the color in description.(i am the one that mannualy added the text in description wiche is my pysical inventory)
I am able to export the lines from the orders to another table wich looks like so:
Now the description is again me just mannualy typing the text into the order in description and then the quantity.
the program then just minuses the quantity from the inventory list.
now what i hope to acomplish is be able to take the invetory list, and substract the LineOrders Description from it,
and then just give me the new inventory list.
I figured it goes somthing like this but im not to sure.
If [InventoryItem]=[LineOrderItem]
Then
Compare
If __@@ from [InventoryList]is the same as __@@ from [LineOrder] then subtract ##__ from ##__
And i hope to get at the end my new inventory list in this case it would be
1021 58BL+25PI+05SL
I dont mind about the total quantity since the other program does that for me.
If anybody can help me it would be really apreciated.
I hope i have made sense, if i have not please tell me and i will try again.
thank you
Mark
I have a table with quite a number of records. In this table I have a field [Qnumber], which gives me a sequential number. The field size is Long Integer. So my records are numbered 1, 2, 3, ....n What I want to achieve is to select only the even numbered records in this table, i.e. Qnumber = 2, 4, 6, ...... etc. I can't find a way to do this. Would appreciate any help on this.
I initially thought I could make an IIF expression that basically says: if [d] in this row is the same as [d] in the previous row then add 1 to the previous record [new number], otherwise, enter 1 in this record [new number] (thereby resetting it)....
I have searched the forums for 'numbered sequences' (amongst other things), and it appears that either the Dcount or Dmax function appear to be the solution, but I'm having some trouble applying it to this problem. I was hoping someone can help me through it.
I have a report listing all individuals within my database by their score. I need to select the top say 40 people from the list, instead of counting down 40 from the top how could I put a number beside each name? Any help would be greatly appreciated.
My friend extracted some text from a PDF file, pasting it into Excel, and needs to find certain pieces of information. Problem is, the text came out as a long string instead of being broken into cells.
So, what we need to do is find, within the text, the 1st, 3rd, 5th, 7th, 9th, 11th and 13th times the word "Principal" appears, and then report back the name that follows. Within the text, it would read something like
(1234 Principal John Doe)
The number in front of it will change or be in a different format, there are other parentheses in the text (varying number of times within the text), and the name changes, of course. We want to extract the name following the word "Principal"... but only the odd-numbered times they appear. Some cells will have as few as six "Principal" entries, others as many as fourteen.
First I will give background on the table and fields. Then I will explain the overall goal for creating of the TEST and KEYWORD 2 fields.
BACKGROUND PROPNUM: UNIQUE ID SECTION: Set of data responsible for a certain function EX: section 4 - expenses, section 5 - interest, etc. SEQUENCE: The order of the sytanx in that propnum's section QUALIFIER: Qualifies multiples set of syntax per section to differentiate other work (NOT REALLY IMPORTANT for the query) KEYWORD: A specific word that the program recognizes and treates the expression according to the key word * the quotes keyword is a continuation line and represent the keyword above it* EXPRESSION: are the variables that are treated by program according to the keyword
OVERALL GOAL: The main goal is to have a spreadsheet of variables used by the program to calculate it's end result. Which means KEYWORD & EXPRESSION by PROPNUM. THE PROBLEM is that the only way to tell that a quote keyword belongs is by having the sequence and section lined up. So my solution is to rename the quote keyword with the primary keyword and a number.
I have a union query with 2 fields: Order and Row_Heading_Full.
Code:
SELECT DummyClientType.Order, DummyClientType.Client_Type AS Row_Heading_Full FROM DummyClientType UNION SELECT ("25") AS [Order], ("Totals") AS Row_Heading_Full FROM DummyClientType;
The purpose is to pull the Order and Row_Heading_Full fields from a table and add another entry that with "25" as the Order and "Totals" as the Row_Heading_Full at the end of the list.
I want it to be ordered sequentially based on the Order field. But instead it is ordered like this: 1, 10, 11, 12... 20, 21, 22... 3, 4, 5... In other words it is ordering only by the first digit and not by the number as a whole.
When I remove the union aspect it is ordered properly:
Code:
SELECT DummyClientType.Order, DummyClientType.Client_Type AS Row_Heading_Full FROM DummyClientType;
But that defeats the purpose because I am not adding a final entry of "25" and "Totals".
I have a table (tblContact) with an auto number key field that is numbered sequentially (1-8) there are no deletions, each new record is appended.I wrote a simple FindFirst line to locate a record that is the first record in the table. The FindFirst failed to find the record.So, I wrote a Do Until Loop that cycles through each record looking for the record that I want to find (the first record with key field 1).
Do Until rstContact.EOF Debug.Print "ContactID: " & rstContact.Fields("ContactID") Debug.Print "CEmployerID: " & rstContact.Fields("CEmployerID") & vbCrLf
This works to find the first record... eventually, because it does not begin its search at the first record. The results in the immediate window are below.
I believe the field CEmployerID is unrelated to the issue. I am also attaching screen shots of the table "tblContact" and code with immediate window. I have tried indexing and not indexing the CEmployerID field in the Contact table to no avail. Even though the Do Until Loop eventually finds my record,
I have a requirement to sort data of the following format by ref:
ref heading ------------------ 1 Section 1.1 Test 1.2 Blah 1.3 Another 1.4 Things 1.4.1 Stuff 1.4.2 Other ... 10.1.1 Something 10.10.1 Else 10.2 Blah blah 2 Some other section 2.1 Another sub-section ... As this data is stored as a string, a simple "ORDER BY Ref" will not deliver the desired effect, but rather will sort the data alphabetically (1, 10, 2, 20, 3 etc.).
Is anyone able to suggest appropriate SQL syntax or point to some VB/VBA logic to address this issue?
Hi, I have an address database and in the zipcode/postcode box, i want all letters entered to go to capitals ie rj20 4ls would go to RJ20 4LS after update. how could i do this, what do i add to text boxes after updat? Thanks
How would I about filtering out all results that contain a letter in them? The entries are in a field called Code, and I only want to display the resources that don't have a letter in the code.
I have one question with regards to the WHERE part of an SQL query. I want to limit my query on datasets, where the first three letters of a certain field (which contains strings) equal "Exp". Is there a more efficient way than the following?
SELECT A.Date, A.Name From tblA as A WHERE A.Name="Exp_A" OR A.Name="Exp_B" OR A.Name="Exp_C";
We are in the process of converting from Lotus Approach to MS Access. In Approach we could create letters that would add the fields we told it to. We do not want to have to use the mail merge to Word. Can letters be created in Access?
hello I have a access DB with several names in a table. I need to get only the first letter of each name, but only one for each A, B, C, etc. For example, if I have 3 names starting with a A and 5 starting with the C, it will give me only 2 records, one with the letter A and other with the letter C. I'm using ASP with access database.
Hi all: MS Access 2003. I have two text fields family_name and given_name I need to extract 1st, 2nd & 5th letter of family_name along with 2nd & 3rd letter of given_name to form a link_key field. If either name has insufficient letters the missing letter is replaced by the numeral 2. Does anybody know how to help me acheive this please!
Now, I have a big table with sales data downloaded from DB2. We have branches codes of 1 digit only. Because of too many branches we have branch codes in upercase and lowercase. So Q ans q are different branches. I'd like to substitute all lowercase codes like q with something like q_ to make them searchable. How I can substitute all lowercase letters in one column of the large table in one shot?
Or may be you know any solution how to make Access queries sensitive to the case.
Hi! I am a new member of this forum and new to access. I need to make a data base and I would to have my primary Key as an autonumber. I would like to use ID numbers that have already been assigned but they have letters in the beginning, they are GKAD0001 etc. so at the moment I just have them as text that wont allow duplicates, but really I would like them as and autonumber so when new data is added it automatically assigns the next number. Is this possible?
I have a table which has contact details in it... two fields are FirstName and Surname. I want to create a new field called initials which takes the first letter from each of the former two fields. Is it possible to do this using an update query?
I've been stumped on this and could use some help...
Fields in my table contains some words that are in uppercase and some in lowercase. I would like to delete all the lowercase letters and keep only the uppercase ones.
For example, if a field contains the following text: CHLOROSULFONIC ACID with or without sulfur trioxide
I would like to change this to: CHLOROSULFONIC ACID
Hello, I am a new member...thanks for any help anyone can provide. I have a table with a column in which the fields will come in with various lengths and combinations of characters. I need to look up certain values from this field, and assign a value to another field based on that. For example if field1 begins with an "H*", then field2 will equal "INS".
My problem is that I need to write a statement saying something like if field1 starts with "H" and is followed by only numbers for any length, then assign field2 "blank"
so I cant use "H*" because that includes letters...and Ive tried criteria like "H[!a-z]*" but cant get anything to work(i know the last example only looks at the space after H) Does anyone have any ideas?
I am creating a form in my database and would like to know if there is a way I can default each starting letter of my surname and address fields with a capital (but leave the rest in lower case)? I feel that it looks more professional.
I have an inlogform and pasword change form i have a table "authorized" userid is the same as pasword if someone wants to try the problem is: he can't seperate capitals from little letters, you can try it...
How can I program it that i can make a difference between capitals and little letters in userid and password