Access: Application best practices

=========NOTES---------Create a form to house the controls (ControlPanel) Create buttons on the form and a CurrentStatus text box Write VBA Code tied to the buttons to update the CurrentStatus text box and to execute Macros that execute Queries ---http://www.anysitesupport.com/access-application-best-practices/

By |2017-12-01T23:47:51+00:00April 12th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access: Application best practices

Access VBA: How do I display a field value?

=========EXAMPLES---------Set rst = CurrentDb.OpenRecordset("Parms")EOW = rst.EOWDateMe.CurrentStatus = "EOW Date set to " & EOW & vbcrlf rst is simply a name to hold your recordset where you are opening the table ParmsEOW is simply a name to hold the field you are querying ---http://www.anysitesupport.com/access-vba-how-do-i-display-a-field-value/

By |2017-12-01T23:47:51+00:00April 12th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on Access VBA: How do I display a field value?

Access: The database has been placed … opened or locked

=========ERROR / MESSAGE---------The database has been placed in a state by <user> on <machine> that prevents it from being opened or locked. =========SCENARIO---------You are pasting a table, query, form, etc from Access Database file to another, and this error pops up stopping you from pasting. =========NOTES---------Standard answer:This error occurs when the new passive shutdown/connection control [...]

By |2017-12-01T23:47:51+00:00April 12th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access: The database has been placed … opened or locked

Access: Format fields

=========EXAMPLES---------Phone Number:If numbers stored as text:Format([field],"@-@@@-@@@-@@@@") If numbers stored as numbers:Format(2127851212,"(000)000-0000") ---------Format([Store],"0000") Input Mask for Table Field:!(999)000-0000 --------- ZIP: IIf(Len([ZipCode])<6, Format([ZipCode],"@@@@@"),Format([ZipCode],"@@@@@-@@@@"))   ---http://www.anysitesupport.com/access-format-fields/

By |2011-04-12T09:45:43+00:00April 12th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access: Format fields

Excel: Date minus 1

=========EXAMPLE---------=Today()-1 =DATE(2011,4,15)-1 =========REF---------http://www.excelforum.com/excel-worksheet-functions/570878-today-minus-1-day.html  http://www.cpearson.com/excel/datearith.htm ---http://www.anysitesupport.com/excel-date-minus-1/

By |2011-04-11T13:30:00+00:00April 11th, 2011|Computers, Documentation, Excel, Microsoft|Comments Off on Excel: Date minus 1

Variables in Batch Files and Commands

=========REF---------http://www.computing.net/answers/programming/batch-script-for-setting-up/12506.html  http://www.msfn.org/board/topic/37472-username-in-batch-file/ =========EXAMPLES---------Test the following by typingECHO %username%, etc at the command prompt %username% %computername% %systemroot% =========APPLIES TO / KEYWORDS---------Microsoft DOSMS-DOSBatchCommandsVariables ---http://www.anysitesupport.com/variables-in-batch-files-and-commands/

By |2011-04-08T11:15:48+00:00April 8th, 2011|Computers, Documentation, Microsoft, MS-DOS / Batch|Comments Off on Variables in Batch Files and Commands

How do I query the top X of something?

=========QUESTION---------I have TABLE-A with 19000 records in it.Each record contains REGION, DISTRICT, STORE, NAME, and that person’s SALESHow do I find the top sales per Region, or per District, or per Store, etc...   =========ANSWER---------OPTION 1 All it takes is three simple MAKE TABLE* queries: In this example, we will find the top SALES per [...]

By |2017-12-01T23:47:51+00:00April 7th, 2011|Access, Documentation, Microsoft|Comments Off on How do I query the top X of something?

VBA: Check if table exists

=========QUESTION---------In Microsoft Access 2007, using VBA, how can you check to see if a table exists? =========EXAMPLES---------On Error Resume Next --------- Public Function dbsTableDelete(DBName)    Count = 0    tblNotFound = False    Do Until tblNotFound        If DBName = dbs2020.TableDefs(Count).Name Then            dbs2020.TableDefs.Delete (DBName)            Exit function        End If        Count = Count + 1        'Determine if we are at the [...]

By |2017-12-01T23:47:51+00:00April 7th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Check if table exists

Microsoft Excel: Transpose Columns and Rows

=========QUESTION---------You have a spreadsheet where you want the data you have entered as rows to now be in columns and the data you have entered as columns to now be in rows. =========ANSWER---------Select your data, copy.Select where you would like to paste the newly transposed dataSelect the the dropdown arrow under Paste in the toolbar, [...]

By |2011-04-06T14:54:50+00:00April 6th, 2011|Computers, Documentation, Excel, Microsoft|Comments Off on Microsoft Excel: Transpose Columns and Rows

Keyboard shortcuts for Microsoft Excel

=========QUESTION / DESCRIPTION---------Keyboard shortcuts for Microsoft Excel =========EXAMPLES---------F2Puts the current cell into edit mode, just as if you clicked the Formula Bar ---------. =========REFERENCE---------http://www.mvps.org/dmcritchie/excel/shortx2k.htm =========APPLIES TO / KEYWORDS---------Microsoft Excel ---http://www.anysitesupport.com/keyboard-shortcuts-for-microsoft-excel/

By |2011-04-05T09:56:54+00:00April 5th, 2011|Computers, Documentation, Excel, Microsoft|Comments Off on Keyboard shortcuts for Microsoft Excel
Go to Top