I have a report which has enough controls on it to make the report go to a second page. In the "Page Header" section of the report I have a control which displays one of the columns of a combo box from the selection form I created. This page header prints on both pages.
When I bring up the...
Hello - I'm having an issue with a filter to a recordset in my code. When I try to ensure the correct precedence by adding parenthesis I get an error. For example:
The following line works fine:
.Filter = "TransPostFiscalYear = " & intFiscalYear & " AND (TransactionCode = 'ASST SURGEON') OR...
I'm writing VBA code within Access that will open two Excel workbooks and then move a sheet from one book to the other book. Then it will close both workbooks and close the Excel object. The first time I run the code it works fine. Then if I try to run the code a second time I get a...
I'm having an issue while trying to edit an Excel workbook from Access using VBA. The odd thing is, when I open the database and run the routine the first time it works. When I try to run it a second time I get a "run time error 424 Object required" message. When I go to debug, the program...
I have a number of users accessing a database which resides on a network server. The problem is that their system dates are not always reliable and I need to be able to pull the system date from the server on which the database resides. This is not an SQL server so the GetDate() function...
I have a form which has a command button on it. The On Click event of the button invokes the class object form code which uses the Month function as follows:
Dim x As Integer
x = Month(#10/5/2004#)
When run, the code produces a type mismatch error. If I run this same code in a module it...
I have a form which has a subform. The subform displays reasons relating to the main form record. I have a combo box on the subform (cboReasonCode) which allows the user to pick the reasons. All I would like to do is require that at least one reason be entered before moving to the next record...
I have 2 fields in a subform; one is a combo box (cboReasonCode) and the other is a text field (txtReasonCategory). I use the AfterUpdate event of the combo box to retrieve the category for the text field. When I do so ALL of the rows of my subform have the category field changed to the one...
I am in the process of implementing a new system to my client. I have setup the security using a new .mdw file on the master database. I am deploying the runtime version of Access with the application. The database is split and I am only deploying the front end with the package. After...
I'm using the BeforeUpdate event from a form to call a subroutine which will pull up a related record in a table. I use the code that follows to attempt to find the correct record in the table. Ignore the fact that the date field is called txtScheduleDate, I've checked and both fields I'm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.