User Profile
Collapse
-
That solution worked great...THX!!! -
I would think the rule would be...for each record in table 1, create only one match in table 2 where the Account, Amount and Customer ID matchLeave a comment:
-
Multiple Record Matching
I have two tables that contain identical fields. (Account, Amount, Customer ID). I have a query that joins on those three fields. For the most part when matching records I get a one for one match. However, there are incidents where let say in table one I have 3 records that contain they following values (Account= 1234, Amount = 100.00, Customer ID = 9870. In table two I have 4 records that have Account = 1234, Amount = 100.00, Customer ID =... -
Insert a variable into an append query
In VB, I have created an append query that will write the results to a table. To each of the records being written, I want to include the user name of the person running the query. I know how to get the user name but do not know how to insert it, even if I can, into the append query. Is this possible? I have the statement I am running now. I get an invalid syntax error now when I run it
...Code:Private Sub Command89_Click() On Error GoTo
-
Unfortunately I do not have the ability to change the table structure. I was able to get the suggestion made by NeoPa to work. Thx for the response....Leave a comment:
-
Working with Memo Fields
I have a bit of an issue and need to see if I have any options. The situation is I have two tables in an Oracle Database. There is no way for me to link the tables based on any common data. However, table one contains a text field titled CUST_NAME. The second table contains a memo field titled CUST_INFO. The CUST_INFO field will contain free form text data that the operators enter. However some of the records only contain the customers name.... -
Pop Message Box Font Siz
I have created several queries that request data from the user. When the user launches the query a pop up box will appear and ask for some requested data. However, the text in the pop window is small. This would include the buttons that appear (OK, Cancel) I would like to change the font size. Is there a setting within Access where I can change this font setting on all pop up windows? -
-
The DCOUNT worked. I am now trying to insert the results into an existing table but I am getting a syntax error. Below is the statement I am trying to run
stInfoPercent = (stInfoTotal / stRecordTotal)
stNonPercent = (stNonTotal / stRecordTotal)
stNPPercent = (stNPTotal / stRecordTotal)
stInsertResults = "INSERT INTO PERCENTAGES (stInfoPercent, stNonPercent, stNPPercent)"...Leave a comment:
-
Type Mismatch Error
The SQL below is returning a type mismatch error and I cannot figure out why.
The ID field in RANDOM_RECORD is a number field. Any one have any idea as to why i am getting the error?
Dim stRecordTotal As String
Dim stRecordResult as String
Dim stRecord As String
stRecordTotal = 0
stRecordResult = 0
stRecordTotal = "SELECT Count(RANDOM_RE CORDS.ID)... -
-
Importing a text file into a table
I am having trouble importing a text file into my access db. My data is in a comma delimited file. I created a table with an autonumber column. When I import the text file it puts the first column of data from the text file in the autonumber field. Is there a way to import data into a table that has an autonumber column? -
Thanks everyone for the pointers. I was able to get the results I needed by making the VB statement an Update one. Using Dlookup I get my percentages and I pass the variable into the update statement which writes the results to a temporary table. Again thanks for the pointers.Leave a comment:
-
Is there a way to run the Select statement in Visual Basic where I could use a variable for the percentage?Leave a comment:
-
Here is what I found in the help regarding the TOP x Percent
SELECT TOP 10 PERCENT
FirstName, LastName
FROM Students
WHERE GraduationYear = 1994
ORDER BY GradePointAvera ge ASC;
My question is how can I change the value of 10 without altering the sql each time. I was thinking I could use a variable that I could pass in. Something like this
SELECT TOP {Enter Value:] PERCENT...Leave a comment:
-
Select TOP x number of records
We have a query that calculates the percentage of customers we have in three groups. (Active, Inactive, Pending). The table we get the precentages from has over 1 million records. I need to design a query that will pull 100 records from a table using the percentages of each group. Ex. if the Active Group is 53% of the database then 53 of my 100 records needs to be from the Active group. Is there a way to pass the percentage onto the SELECT... -
Thanks for moving the message and the reply. It worked GREAT!!!...Leave a comment:
-
Random Item query selection
I have a real head scratcher here. Our Audit department wants to view records that our operators update in our customer account table. They want us to randomly pull records from the table. Is there a query method that will pull records randomly? -
Text fields in queries
We have several tables that store numeric data as well as text fields that we receive from our customers. Some customers use " in the text fields. When I query the data and export the results to a TXT file it puts additional " in the text field. ex.
In the database text field 1 - <need extra files sent to location "1">
When I export the value via a query it displays the following
"<need... -
Thanks. That worked great.
Hey one question, is there somewhere in the help screens or somewhere else that lists other acCmd? options?...Leave a comment:
No activity results to display
Show More
Leave a comment: