Access: MaxLocksPerFile / File sharing lock count exceeded

========= QUESTION --------- When synchronizing in Microsoft Access, I get the following error: ERROR: -2147467259 - File sharing lock count exceeded. Increase MaxLocksPerFile registry Entry.   ========= ANSWER --------- Adjust the registry entry MaxLocksPerFile to increase the maximum number - see: http://support.microsoft.com/kb/815281 (Method 1) Start button, Run Type: RegEditClick OK--- For Access 2000, Access 2002, [...]

By |2017-12-01T23:47:38+00:00August 1st, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on Access: MaxLocksPerFile / File sharing lock count exceeded

VBA: Loop to create a table with the number of records specified in a field of another table.

========= QUESTION --------- I have a table with one record per entity, and a field with the number drawing entries they have. How do I take this and create a table with one record for each of those drawing entries?   ========= ANSWER --------- Use the code in EXAMPLES below to open each record in [...]

By |2017-12-01T23:47:38+00:00July 29th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Loop to create a table with the number of records specified in a field of another table.

Access Error: Microsoft Access can’t open the Zoom box

========= QUESTION --------- When I right-click a field cell in a query and select Zoom I get the following error in a pop up dialog box with an OK button: Microsoft Access can't open the Zoom box. The Microsoft Access Utility add-in is missing or was modified. Rerun Microsoft Access or Microsoft Office Setup to [...]

By |2017-12-01T23:47:39+00:00July 15th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access Error: Microsoft Access can’t open the Zoom box

Access Error: …is not a valid name

========= QUESTION ---------When running  a query in Microsoft Access, I receive the following error in a pop up dialog box with an OK button: 'QUERY NAME HERE' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.    ========= ANSWER --------- This [...]

By |2017-12-01T23:47:39+00:00July 15th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access Error: …is not a valid name

VBA: Use VBA to create directories

========= QUESTION --------- Can I create directories from within my VBA code?   ========= ANSWER --------- see EXAMPLES   ========= EXAMPLES --------- MkDir "c:TOTNExamples" --------- If Len(Dir("c:TOTNExamples", vbDirectory)) = 0 Then MkDir "c:TOTNExamples"End If   ========= APPLIES TO / KEY WORDS --------- VBA Directory Directories md MakeDirectory Make Directory   ========= REF --------- http://www.techonthenet.com/access/functions/file/mkdir.php   [...]

By |2011-07-13T08:50:11+00:00July 13th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Use VBA to create directories

Access: Undefined function “Right” in expression

========= QUESTION --------- All of a sudden when I am running a query that includes the standard Microsoft Access function Right(), it is erroring out on me with the error: "Undefined function "Right" in expression"   ========= ANSWER --------- Apparently functions like this can go missing from time to time for varying reasons. To get [...]

By |2017-12-01T23:47:40+00:00July 5th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access: Undefined function “Right” in expression

Access 2010: ‘Enable Content’ button for Network Files

========= QUESTION --------- Every time I open an Access Database from the network using Access 2010, I can't work in it until I click the [Enable Content] button. Is there a setting somewhere I can change to avoid this?   ========= ANSWER --------- Access 2010Select File, Options Select Trust Center, Trust Center Settings… --Macro Settings: [...]

By |2017-12-01T23:47:41+00:00June 21st, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access 2010: ‘Enable Content’ button for Network Files

VBA: Access: Calling Linked Table Manager

========= QUESTION --------- Can you call or open the Linked Table Manager in Microsoft Access from your VBA code?   ========= ANSWER --------- See EXAMPLES --------- Another interesting way of doing this would be to simply execute a query in your VBA code against each linked table in your database, thereby causing the logon prompt [...]

By |2017-12-01T23:47:41+00:00June 15th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Access: Calling Linked Table Manager

VBA: Can you open Windows Explorer from VBA?

========= QUESTION --------- Can I open Windows Explorer from my VBA code?   ========= ANSWER --------- See EXAMPLES   ========= EXAMPLES --------- Private Sub WindowsExplorer_Click() Dim rst As RecordsetDim retval As String Set rst = CurrentDb.OpenRecordset("Parms")retval = Shell("explorer.exe " & rst!Path, vbNormalFocus)Set rst = NothingEnd Sub   ========= APPLIES TO / KEY WORDS --------- Microsoft [...]

By |2011-06-15T13:27:19+00:00June 15th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Can you open Windows Explorer from VBA?

VBA: How to put double quotes in a string

========= QUESTION --------- I need to have double quotes (") in a string in VBA, as I am entering WHERE statements in a SQL statement, but every time I have quotes in a string, it errors out.   ========= ANSWER --------- Any time you have double quotes ("), simply double them ("") and you will [...]

By |2017-12-01T23:47:41+00:00June 15th, 2011|Access, Documentation, Microsoft, VBA|Comments Off on VBA: How to put double quotes in a string
Go to Top