I currently have the following Access VBA function, which operates as explained in a previous question (very useful for understanding this question): However, instead of Field3 containing either yes or no, in my data it can contain one of several values. For simplicity, let’s say that these values can be any one item from the following set of strings: (0,
Tag: ms-access
How to maintain uniqueness during SQL Join within Access-VBA function?
I currently have the following Access VBA function: What this is doing is taking the tableName table and inner joining with the newTableName table’s Field1 to Field4 on commonField. Note that Field4 will be the same as commonField, since it needs to be selected to perform the join. In order to convey my intended behavior, I must explain how tableNameTemp’s
Using a query for Single field in Access Report
I am new to access. I have a report with a query(Q1) as its data source. Is it possible to use another query(Q2) only for one field in the same report? My main query is: My report’s structure is like this: As you can see, in the report I group my data using the Lastname column then I show details
Having trouble with IF condition using SQL
I cannot seem to get this IF statement to step into the Call Expiry part it goes to the else therefore I can only assume there is something wrong with my condition. I’m trying to fetch the contract status from an access table Investment Data WHERE Customer Number is the Customer Number on the current spreadsheet. (There is only 1
Get the lowest Score of each distinct Name and distinct Group
Need to get the lowest Score of each distinct Name and distinct Group. Thank you. Result: Answer
VBA Query based on multiple “multiple select list boxes” in Access when not selecting an item from one of the multiple select boxes
I have the following vba that creates a query in a test Access database. I have two multiple select list boxes. The issue is, i want to be able to select multiple items from “Me![State]” and none …
MS ACCESS SQL Join Subquery
I have two tables: newparts, storedparts I insert the parts of the newparts, which are not jet in the storedparts into the storedparts: This is working fine so far. Now the Problem: Table storedparts is getting so big that the programm is taking too Long for the join process. My solution: Just compare the newparts not to all parts of
Create Table From Query Access VBA
http://www.techonthenet.com/sql/tables/create_table2.php I have a very complex query that pulls in information from ~10 tables, I’d like to then print those results to a table. Here’s my attempt: Where [DATA OUTPUT TABLE] is intended as the new table name and [Data Export] is the name of the query. Answer Almost immediately found the answer: http://www.w3schools.com/sql/sql_select_into.asp
Can’t retrieve data from Access DB query to my VB program
So this is my code so far… I have 2 DateTimePickers in which the user selects the first day of the week and the last day of the week, once selected these two I want to calculate the hours worked on each day and add them so I can display the amount of hours worked of the interval of days
Removing last character in ACCESS if it is “.”
I am trying to write an update query that will remove the last character if it is a period (“.”). In EXCEL, I would use the following statement: How can I modify this for ACCESS? I found the following statement in a forum, but ACCESS seems to have a problem with “Substring” and won’t let me run the query. Any