Open Form Where Condition Text Field
I have a student ID that looks like this AB123456 I want to open a form based on a form I have a combo box with a macro. I am stumpted on the where condition because it is a text field. =" [Student ID]...
View ArticleGoToPage
I am running Access 2013. I have a large database with data entered on several tabs in the form to make data entry easier. I would like to use GoToPage macro to return to the first tab titled "Company...
View ArticleAutoExec Macro
Hello World... I have a procedure in a standard module and I want to run it in AutoExec Macro For some reason i don't understand, Access does not recognize the procedure, so the macro fails. I tried to...
View ArticleMacro to avoid accidental record edits
Hi! I have some users that like to randomly click on things and delete text for no reason. This results in accidental changes to some of our data. I’ve locked everything on the form that isn’t used for...
View ArticleStoring SQL results via Recordset in a text box
Hello, I am currently building a form where I need to store the results of an SQL into a text box. The results will be a one field query, where it will display the Customer names. The bit I am stuck on...
View ArticleMacro to Enter data from userForm into unlinked table
My db has tblBrokerage, tblHedgeB. They share 9 columns. (Edit - I understand that duplicate data is terribel design however it is a client request for reference when completing the different user...
View ArticleAutoexec export
Hello to all respected members i have a question regarding autoexec macro i split database and created autoexec to set few startup properties and open login form but issue is autoexec macro can be...
View ArticleMacro to Copy Record Before Edit
Hey All, I am an intern working in risk modeling. I have been tasked with setting up a database in access for all of our models. We need a record of all past models, and edits of current models for...
View ArticleWhy Data Macros are this much tougher?
Please Have a look into the "AfterInsert" on the table attached in the database...
View ArticleAutoexec Macro works on A10 (accde) but not A365 (accde) - Error #2425
Hi Everyone I have a Access project (Sampledb.accdb) on my PC win10 - Office365 (64bits) A virtual machine (on same PC) i have win10 Office10 (Pro-64 bits) On my PC: -Run accdb: Working well On Virtual...
View ArticleChecking if CurrentDB is in a trusted location
I'm trying to close a database if it's opened from a location outside of trusted locations. Above autoexec closes the database, but prior to this, I receive the following error message. My question: Is...
View ArticleAdding amount criteria to report
Good morning, I am trying to add an amount criteria of >= $1000 to this report. What's wrong? Private Sub cmdFYTDBUEndowmentCommitments_Click() If Not IsDate(Forms![Development Report...
View ArticleFilter on Load
I have a form with a query that I want to filter on load between 10/1/22 and 9/30/23. I then want a check box that I can click to view all records. When checked- show all records Unchecked- between...
View ArticlePrintOut not reading the default printer
Hello, I have a form with a cmd button which refers to a macro to quick print the active form. Suddenly, the print function does not recognize the default printer (PRT1) and all prints are sent to a...
View ArticleDisplay "N/A" on Sum code
Hi AW Team, Good day. I would like to ask your assistance again regarding the code. In the FORM under DATA , CONTROL SOURCE, I use the below code to sum the number of "Closed" value in "Status"...
View ArticleQuotient with N/A value
Hi AW Team, Good day. I would like to ask your assistance again regarding the code. In the FORM under DATA , CONTROL SOURCE, I use the below code to get the quotient value of T1 and T2 =[T1]/[T2] It...
View ArticleERROR 3137
here is the code trying to insert two line in same time by the way one line is working but when trying to add another line it give error 3137 "INSERT INTO test_table_transactions (T_Account_Number...
View ArticleError 2766 when executing a MACRO with IF condition
Hi, I am trying to write If condition in a Macro to execute query. Following condition gives me Error 2766 [MaxHorseRatingTable]![centre]=DEL centre is a TEXT field Please Guide. Thanks & Regards...
View ArticleBest use of Macros
I would be interested in a discussion as to when it's best to use a macro vs. VB program.
View ArticleTrying to detect when a query has no records using a Macro
NOOB question here. I have an equipment testing log database that uses a Short Text field for Serial Number (Some serial numbers have characters in them). I have a query that uses the Criteria of...
View Article