How to rename the column headings for combo box columns. Q: John V. wants to be able to give the column headings for combo box columns the names he wants – not just pick up the field names. A: This can be done by entering the column heading text you
How to format times and/or dates in the way you want to see them. Q: M. Schiller wants to know how to convert a time to the 12 hour time format. A: There is no need to convert – just use the Format function to format dates and/or times in
How to use the AddItem method to transfer data from two fields into a single column in a listbox. Q: Kris Rutko wants to know how to transfer data from two columns of table information into a single column in a listbox, using the AddItem method. A: Save the value
How to make all table records appear in a query regardless of whether they have any linked Extras records. Q: Liz has a query that returns records from a Registration table and an Extras table. She needs the recordset to include all the records in the Registration table regardless of
Making records appear in the order they were entered. Q: Frank Payne writes: “I would like the data in a particular table to appear in exactly the order in which I enter the records. I do not want it sorted in either Ascending or Descending order. I have deleted the
Tips for using dates in file save names. Q: Luis Pelaez writes to say that he is having a problem creating a document save name with a formatted date. A: You can have problems if you use slashes in file names, such as the standard mm/dd/yyyy date format. I use
How to filter a table-type recordset. Q: Mark Jackson writes: “Does anyone have a very complete example of how to open a table type recordset based on a table in the same database? I can’t seem to find what I am missing in my code. I was able to get
Access Archon #152 The Sample Forms The sample database has two forms, frmGetFromDBProps and frmSaveToDBProps. frmGetFromDBProps has an Open event procedure that first clears and then refills a table with the current database properties, and requeries the cboSelectProperty combo box. The txtPropertyValue field displays the property value from the
How to use Access custom database properties to store information in a database, out of sight, but available to your code as needed. Access Archon #152 Introduction Sometimes you may need to store bits of information in a database, out of sight, but available to your code as needed.
Here’s an updated way for you to add backup capability to an Access database. Access Archon #151 Introduction A few years ago, in Access Archon #115, I described a way to create backups of the current database, using several objects that you could import into a database, to make
How to total a calculated field on a report. Q: Marie H. needs a total in a report group footer, based on a calculated field in the report detail section. =Sum([txtWeekTotal]) doesn’t work – how can this field be totaled? A: You can’t total a textbox, but you can total
Here’s where to locate the Access 2007 equivalent of the View Form Header/Footer command. For a while, I couldn’t locate the Access 2007 equivalent of the old View Form Header/Footer command, and finally found it, as a tiny button on the far right of the Show/Hide group on the Layout
How to write long strings to an InputBox. Q: Peter Matthews writes that help for the InputBox says it will input the user’s string, and the definition of a (variable length) string says it can be up to 2 billion characters. So how come my VBA called out InputBox won’t
How to list detail items on a report in the order they were entered. Q: Scott Campos writes: “I want the invoice report to print in the same order as is entered on the order form. This makes it much easier to manually double check an order to make sure
Here’s a review of the Access Workbench, a tool that helps manage Access databases. Access Archon #149 By guest author Danny J. Lesandrini Database Management Made Simple Product reviews can get pretty boring, especially when you’re the one writing them, but I’ve found a way to make this one more
How to rename files in a folder. Q: Richard Bryant writes: I have written the following code to change the name of files imported as .tif files from the county deed books for use by my Access program. Private Sub Command2_Click() Dim Path1 As String Dim Path2 As String Dim
How to retrieve some commonly used folder paths using contemporary syntax. Access Archon #148 Introduction Back in 1996 or 1997 I wrote a set of articles for Office Underground Office Newsletter (that was the one printed on bright yellow paper) on retrieving various paths, such as the Windows and Office
A reader offers some further information about the CreateMonthList function. José Dumoulin wrote in response to the CreateMonthList function in the sample database for Access Archon #146: For us, Europeans, it is necessary, in this line, to replace commas by semicolons: strMonthList = strMonthMinus3 & ” ” & strYearMinus3
How to ensure leading zeroes are not discarded. Q: Albin Moroz wrote me to say that he is having problems keeping the leading zeroes in U.S. Social Security Numbers (SSNs). He was using the expression Format(Nz(patientRS(patient.SSN), “”), “###-##-####”) which discards leading zeroes. A: Instead of the # placeholder, which discards
How to display linked records before deleting them. Access Archon #147 — The VBA code for the command buttons is listed below: VBA Code frmOrderCleanup Private Sub cmdDeleteOrder_Click() On Error GoTo ErrorHandler Dim strPrompt As String Dim strTitle As String Dim intReturn As Integer
Here’s a quick solution to get databases linked again if the Linked Table Manager is missing from the Database Utilities menu. Q: Jeanne M. writes: “I sent new back-end and front-end databases to a client, and told him to re-link the front-end to the back-end, but he said there was
How to display linked records before deleting them. Access Archon #147 Introduction If you have set up relationships between tables with Cascade Delete Related Records unchecked (a good idea, to prevent inadvertently deleting records you might want to save), then you might want a way to check which records are
How to create a date range filter. Q: Fredm writes: “I have a table that has two different date fields but I have linked them to one date table. I want to filter the results of the date to show records from now to 30 days before but find that
How to format text in a memo field using an Access add-in. Q: Michael Masson writes: I am re-working an existing SQL 7 database to MS Access 2003. The data translation etc is OK if a bit hairy at times. I am using this database as a model for a