Search results

  1. J

    Invalid Reference when starting database

    Try the suggestion in the utter access post of resetting the querydefs after relinking. If that works, that is the one for you. Don't even think that you have done something wrong with references - this is definitely a bug in A2010. I know how much time I spent confirming that it is a bug - I...
  2. J

    Invalid Reference when starting database

    I just checked on Utter access and someone says that they found a workaround with some code to go throught the querydefs and reset them. Here's the link to the utter access post http://www.utteraccess.com/forum/Invalid-database-Object-R-t1953275.html
  3. J

    Invalid Reference when starting database

    I know this error very well. It is a bug in A2010. This error happens when the frontend and the backend are in different folders and you are using A2010. We are waiting for SP1. I believe that you can get around the error by doing a compact and repair. I haven't needed to try the compact and...
  4. J

    Talking to other files

    The number of tables, queries, forms reports ect looks normal for a large database. You can get that error if you open objects but don't close them properly. Here is an example using a recordset. We call it 'cleaning up'. 'start of example I always clean up in the Exit area with an On Error...
  5. J

    Talking to other files

    In addition to Gemma's fine answer - Tell us which limits are causing a problem. What is the text in the error messages? How many forms do you have? How many saved queries? How many reports? How many ActiveX controls? How many relationships? Does your app compile? What references are set? Is...
  6. J

    How to pass name of the tab into the query in access 2007

    Surprisingly, the name of the tab is not needed at all. Just use the name of the form and subform (if there is one) together with the control name. Do it the same way as a form without tabs.
  7. J

    Query Criteria Based On Form's Text Boxes and Combo Boxes

    Here is a link to a sample db that shows an easy way to setup the form to search from multiple textboxes and dropdowns. I personally use this type of search form many times in databases for my clients. http://www.allenbrowne.com/ser-62.html
  8. J

    Access 2010 crashes when I close a report

    Instead of putting that code in the report, put it in the record source of the report instead. Base the report on a query. In the design view of the query, put >0 in the criteria row for the column called 'amount'.
  9. J

    Access 2010 crashes when I close a report

    Remove the line of code DoCmd.ApplyFilter, " " That code does not do anything useful. See if that stops Access from crashing.
  10. J

    Report refresh

    I suggest that the Report button has code like this Private Sub ReportBtnName_Click() Dim strWHERE As String Dim lngLen As Long 'Date field example. Use the format string to add the # delimiters and get the right international format. If Not IsNull(Me.txtStartDate) Then strWHERE = strWHERE &...
  11. J

    Report refresh

    Post the code behind the Report and Refresh buttons so we can make suggestions.
  12. J

    Basing subform headers on contents of a control

    I did a quick search and found these suggestions from access mvp Allen Bronwe. Answer 1. To get you started, you will need at least these tables: Trainee: one record for each person Training: one record for each type of training Course: one record for each time a training course is offerred...
  13. J

    Basing subform headers on contents of a control

    First - the label that goes with the attendance is a control on your main form. You can change the caption of that label using code. Me.[NameOfLabel].Caption = Me.[TrainingDateControlName] Second - your tblEnrollment is breaking the basic rules of Normalization. Read up on normalization before...
  14. J

    Need help relating two tables that could have multiple relationships

    Instead of creating fields called Volunteer1, Volunteer2, Volunteer3, create a separate table that matches the program ID with the volunteer ID. You can call this table tblProgramVolunteers. This table can have an autonumber primary key called ProgramVolunteerID. The 2 important fields are...
  15. J

    Combo box

    Base the form on a query that combines the data from tblQuotes and the Client's name from tblClients. Put an unbound combo in the header of the form. The combo shows the status. You can use the form's filter to show the records that match the status selected in the combo. Here is some sample...
  16. J

    MDE created in Win7 don't run xpwin

    I believe that Win7 comes with a free virtual machine setup with the Winxp OS. I read this recently from a well-respected mvp - Albert Kallal. I must admit that I have not tried this, but it might help you. Also have a look at this http://allenbrowne.com/bug-17.html
  17. J

    Subform query from main form's data

    You need just one table for categories. You have a table for Types. Assuming your Types table has an autonumber primary key called TypeID, you just store the TypeID in the Company table and in the Category table. My answer from the previous post still applies to get the correct list in the...
  18. J

    Subform query from main form's data

    If it is as simple as you describe above, consider putting all the categories into the same table. In the categories table, have a field that shows the type. Then back in your form , your combo can automatically get the correct values for the type chosen in the form. ' suggestions for the...
  19. J

    Force "Cancel" on subform

    Use a delete query to remove the ticket ID (from whatever table you appended it to) in the subform's on load event. When you detect that a user has backed out of the subform without entering any ticket details, run the delete query.
  20. J

    Multiple Or Statements in WHERE Clause

    Sounds like you are trying to build a search form to display the results depending on what the user chooses. Here is a link to a sample database that I use for my search forms. The important part is how the where clause is built from the listboxes or combos after the user makes their choice...
Back
Top Bottom