![[Clip]Export Access to MySQL](https://i.ytimg.com/vi/m9LxGF3Qc90/default.jpg)
11/30/2012
10/11/2012
View system tables in database window
vào lúc
9:03 AM

Answer: Under the Tools menu, select "Options".
10/09/2012
Hide tables as system tables in Access
vào lúc
1:05 PM

Answer: If you've tried setting your tables as hidden objects and the users are still able to find them, you can always set your tables up as system tables. Inside of your Access database, there are several system tables that even you can't see. These tables are used internally by the Access database.
10/07/2012
Hide tables as hidden objects
vào lúc
5:54 PM

Answer: If you don't want users to see a table in an Access database, you can mark the table as a hidden object.
Open the database exclusively
vào lúc
10:35 AM

Answer: Because Access was designed to accommodate multiple users in the system at the same time, you may need to have exclusive access to the database to modify forms, tables, etc. depending on the circumstances.
Display/Unhide the database window
vào lúc
4:01 AM

Method #1
This is the easiest and most common method of unhiding a database window.Under the Window menu, select Unhide.
10/05/2012
Hide the database window
vào lúc
5:00 PM

Method #1
This is the easiest and most common method of hiding a database window.Under the Window menu, select Hide.
With this method if a user chooses to display the database window, it will remain visible even if the user closes down the database file and reopens it.
9/05/2012
Bind combo box to primary key but display a description field in Access
vào lúc
8:45 PM

Answer: Quite often the primary key value can mean nothing to the user. Instead, there is a description field in the table that relays the meaning of the record. In Access you can link a combo box to the primary key, but display the description in the combo box itself.
To do this, first create a combo box object. Right-click on the combo box and select Properties from the popup menu.
Nhãn:
combobox
8/24/2012
DateDiff Function
vào lúc
1:33 PM

The syntax for the DateDiff function is:
DateDiff ( interval, date1, date2, [firstdayofweek], [firstweekofyear])
interval is the interval of time to use to calculate the difference between date1 and date2. Below is a list of valid interval values.
Nhãn:
Function
8/16/2012
View only records with uppercase letters for a certain field in Access
vào lúc
8:15 PM

For example, the query would ignore "Bob", but show "JOHN".
Answer: Access was built to be case-INSENSITIVE, but we can always use the ASC function to determine upper vs lower case.
Calculate and format an elapsed time value in Access
vào lúc
8:13 PM

For example, 27 hours and 31 minutes appears as 27:31. I can do this for values up to 24 hours. But for anything over 24 hours, the full day(s) are dropped off.
Answer: A "elapsed time" is usually calculated by taking the difference between two dates. So, you will need to store the "from" and "to" dates separately and then calculate the elapsed time.
8/06/2012
Convert currency into words
vào lúc
7:17 PM

For example,
$100 should read as "one hundred exactly"
Answer: To convert currency into words, you'll need to open your Access database and create a new module.
8/05/2012
Generate a random number between 2 user-specified values
vào lúc
4:49 AM

The syntax for the Rnd function is:
Int ((upperbound - lowerbound + 1) * Rnd + lowerbound)
upperbound is the highest value that the random number can be.lowerbound is the lowest value that the random number can be.
8/04/2012
Report Example (Employee hours worked per day)
vào lúc
6:55 PM

Answer: We've created a sample Access database that contains the tables, queries, and reports required to demonstrate this example.
8/03/2012
Display parameter values in a report based on a parameter query
vào lúc
8:23 PM

Answer: To display a parameter value in a report, you will need to redesign your parameter query to return the parameter as a field in the result set.
We've created an Access sample that you can download.
8/01/2012
Capitalize each word in a string (similar to InitCap in Oracle)
vào lúc
10:01 PM

The syntax for the StrConv function is:
StrConv ( text, conversion, LCID )
text is the string that you wish to convert.7/31/2012
Renumber invoices with VBA code
vào lúc
10:31 AM

Answer: You can renumber your invoice numbers using a custom function.
Open your Access database, click on the Modules tab and create a new Module. Paste in the following
7/24/2012
Change AutoFormat (background style) for a form in Access
vào lúc
9:57 PM

Also learn how to change AutoFormat (background style) for a form in Access 2007 | Access 2003/XP/2000/97.
Question: In Access 2003/XP/2000/97, is it possible to change a background style for a form?Example: I have a user who wants to change the background throughout the application. When it was originally created the autoformat "Expedition" was utilized.
Answer: You can change the background style of an object using an AutoFormat. To do this, open the form in design view. In this example, we've opened the form called Customers.
7/22/2012
Prevent the mouse wheel from scrolling through records in a form in Access
vào lúc
9:35 AM

Answer: You'll have to download the following MouseWheel.dll file and copy it to each computer that you wish to prevent scrolling.
7/21/2012
Set form colors to be consistent on different computers in Access
vào lúc
9:28 PM

Also learn how to set form colors to be consistent on different computers in Access 2007 | Access 2003/XP/2000/97.
Question: I want to deploy an Access 2003/XP/2000/97 application. The forms have non-default colors. When I test the application over the network the colors change to access default or desktop default. How can I force my colors to the user screen?7/20/2012
Set the background color of a button in Access
vào lúc
9:18 PM

Answer: Unfortunately, you can't change the back color of a command button. As an alternative, you could create a label and have it behave as a button.
7/19/2012
Query to retrieve max date in Access
vào lúc
9:55 PM

Answer: To do this, open your query in Design view. Select the field that contains the date values. In this example, we've selected the Order_Date field.
7/18/2012
Retrieve the user name from Windows while in a database in Access
vào lúc
8:14 PM

Answer: To retrieve the user name from Windows, create a new Module in Access.
Paste the following code into the Module:
7/16/2012
MS Access: Populate underlying table when new entries are keyed into combo box in Accesscombo box
vào lúc
9:59 PM

Also learn how to populate underlying table when new entries are keyed into combo box in Access 2007 | Access 2003/XP/2000/97.
Question: In Access 2003/XP/2000/97, I have a form that is bound to a table. I have created a combo box on this form that obtains its values from a field that resides in a different table from the one that the form is bound to. When I enter values in this combo box I want those values written back to the associated field. How do I setup the combo box so that entries in the combo box are written back to the field in the table it came from?7/15/2012
Access a value from a table using VBA code
vào lúc
2:05 PM

Answer: To access a value directly from a table using VBA code, you first need to create a new Module. To do this, open the Database window, select the Modules tab and click on the New button.
7/14/2012
Parse a string into two values based on the occurrence of an underscore
vào lúc
11:00 AM

Example of the field content is:I need this field split into two fields such as:
1234_ACME company
Field1: 1234The Underscore (_) can be in any position in the string.
Field2: ACME company
Answer: In Access, you can create custom functions to supplement what is missing in Access. To do this, click on the Modules tab in the Database window and create a new module.
7/09/2012
Convert a date to a numeric value
vào lúc
7:41 PM

For example, I want to change the date 20/02/2004 into the number 20022004. This formats the number as ddmmyyyy.
Answer: In Access, you can create custom functions to supplement what is missing in Access. To do this, click on the Modules tab in the Database window and create a new module. Then paste in the following custom function:
7/08/2012
Format a string to display as a currency value in Access
vào lúc
11:04 AM

How can I properly display the currency value in the message box?
Answer: You will need to use the Format function to properly display the currency value.
Export two Access tables into individual sheets in an Excel spreadsheet in Access
vào lúc
3:22 AM

Answer: We've created a sample Access database that you can download that demonstrates how to export two Access tables into the same Excel file.
7/04/2012
Create new database file and transfer tables using VBA
vào lúc
7:08 PM

Also learn how to populate underlying table using a popup form when new entries are keyed into combo box in Access 2007 | Access 2003/XP/2000/97.
Question: In Access 2003/XP/2000/97, I have a combo box that is populated from a table/query. How would one add an item to a combo box via popup form if a user enters a value that is not in the list?Examples of converting Excel formulas to Access 2003/XP/2000/97
vào lúc
7:03 PM

=VALUE(DATE(VALUE(MID(A1,4,1))+2000,1,1))+VALUE(MID(A1,5,3))-1How can I do this?
Answer: In an Access query, the equivalent formula would be:
7/03/2012
Connect to Oracle using VBA code
vào lúc
10:49 PM

So I've created a form called "Login", but I need help writing the VBA code that would connect to Oracle. Can you help?
Answer: To connect to Oracle as you described above, you'll have to first create an ODBC connection to your Oracle database using the {Microsoft ODBC for Oracle} driver.
Link to an Oracle table using VBA code
vào lúc
10:48 PM

Answer: The first thing you need to do is create an ODBC connection to your Oracle database using the {Microsoft ODBC for Oracle} driver.
To do this, go to the "Data Sources ODBC" icon under the Control Panel and create a new Data Source using the {Microsoft ODBC for Oracle} driver.
Call an Oracle stored procedure using VBA code
vào lúc
10:45 PM

e.g. application_program_interface(member_id, provider_id, service_date)Answer: To call an Oracle stored procedure, you'll have to create a query using VBA code.
Create a pass-through query to retrieve the nextval from an Oracle sequence with VBA code
vào lúc
10:42 PM

How can I do this?
Answer: To assign the NextVal (from an Oracle sequence) to a field on a form, you'll have to create a pass-through query using VBA code.
Create a pass-through query to retrieve the nextval from an Oracle sequence
vào lúc
10:39 PM

select seq_name.nextval from dual;Is there any way to get nextval from the Oracle sequence through Access 2003/XP/2000/97 when docmd.runsql("select seq_name.nextval from dual") doesn't work?
I need to insert nextval (the same value) into two tables.
Answer: To get the nextval from an Oracle sequence, you will need to use a pass-through query in Access.
To create a pass-through query, create a new query. Select Design View and click on the OK button.
7/02/2012
Play a wav file (sound file) without using the API
vào lúc
10:50 PM

Answer: It is possible to play wav files within your Access database without using the API. We'll demonstrate how to do this on a button's on_click event. First you will need to create a new Module and paste in the following VBA
Play a wav file (sound file) through the API when a button is clicked, based on a text box value
vào lúc
10:45 PM

I want to create a button on the Form that allows me to play the wav file that is displayed in the WavFilename field for the current record in the Form.
How can I do this?
Answer: It is possible to play wav files within your Access database. To do this, create a new Module and paste in the following VBA
Play a wav file (sound file) through the API when a form opens, based on a text box value
vào lúc
10:32 PM

Answer: It is possible to play wav files within your Access database. To do this, create a new Module and paste in the following VBA
Play a wav file (sound file) through the API
vào lúc
10:25 PM

Answer: It is possible to play wav files within your Access database.
To do this, create a new Module and paste in the following VBA code:
Re-enable the Shift key when logging into a secure database in Access
vào lúc
12:22 AM

How can I re-enable the Shift key when a user logs in so that the Database window becomes visible?
Answer: Within your Access database, there is a Database Property called "AllowBypassKey". By default, your Access database sets this property to True and allows users to use the Shift key functionality when logging into a secured database.
Disable the Shift key when logging into a secure database in Access
vào lúc
12:21 AM

How can I disable the Shift key when a user logs in so that the Database window remains hidden?
Answer: Within your Access database, there is a Database Property called "AllowBypassKey". By default, your Access database sets this property to True and allows users to use the Shift key functionality when logging into a secured database.
Associate an mdw security file with a database in Access
vào lúc
12:20 AM

Answer: You can associate an mdw file with an Access database, by setting up a Shortcut in Windows.
In our example, we'll assume that the Access database is called suppliers.mdb and the mdw file is called secure.mdw. Both of these files will reside in a directory called c:\test for the purposes of this example.
Now, create a new Shortcut object in Windows. You can do this by right-clicking and choosing New > Shortcut.
Launch the Workgroup Administrator in Access
vào lúc
12:17 AM

Answer: To run the Workgroup Administrator for Access 2003/XP, you'll need to first launch Access.
Remove a database-level password from a database in Access
vào lúc
12:10 AM

Answer: To remove a database-level password, exclusively open your Access database.
Set a database-level password on a database in Access
vào lúc
12:04 AM

Answer: To set a database-level password, exclusively open your Access database.
6/30/2012
Conditionally format a field in a report in Access 2003/XP/2000/97
vào lúc
7:43 PM

Answer: We've created a sample Access database that demonstrates how to apply a conditional format to a report in Access97.
Conditional formatting - Change the formatting of a field in a report when the field contains a NULL value in Access 2003/XP/2000/97
vào lúc
7:36 PM

Answer: If you want to highlight a field that "Is Null", you can apply conditional formatting. To do this, open your Access report and highlight the field that you want to change the behavior of. In this example, we've selected the OrderDate field.
Conditional formatting - Change the formatting of a field in a report based on its value in Access 2003/XP/2000/97
vào lúc
6:53 PM

Answer: If you want to change a field in a report based on its value, you can apply conditional formatting. To do this, open your Access report and highlight the field that you want to change the behavior of. In this example, we've selected the CategoryID field.
6/29/2012
Fill in missing data on a graph in Access 2003/XP/2000/97
vào lúc
5:34 PM

Answer: To force the years without data to appear on the graph, you'll have to create some additional queries.
Let's take a look at an example.
Create a graph (ie: chart report) in Access 2003/XP/2000/97
vào lúc
5:31 PM

Answer: Yes, in Access you can create a graph. This is called a Chart report.
Let's walk through an example.
Open your Access database and click on the Reports tab in the Database window.
Run-time error '424' (Object Required) in Access 2003/XP/2000/97
vào lúc
2:50 PM

Trim function will not work in a report in Access 2003/XP/2000/97
vào lúc
2:46 PM

How can I get the trim function to work in a report?
Answer: To use the trim function in Access, there are 2 steps that you must perform.
Let's take a look at a report to demonstrate.
In the picture below, we've tried to use the trim function on the Category Name field and it is generating a #Error for each line.
How to fix a "Compile error.in query expression" Error in Access 2003/XP/2000/97
vào lúc
1:46 PM

"Compile error.in query expression"I've seen this function work in other Access databases. How come it does not work in mine?
Answer: This error can occur when there is a broken Reference in your Access database and you've tried to use one of the built-in Access functions such as Left, Instr, Len, Year, Mid, etc.
MS Access: Database variable "not defined" error in Access 2003/XP/2000/97
vào lúc
10:08 AM

Within the VBA code, a database object is declared as follows:
Subscribe to:
Posts (Atom)