Search results

  1. Robert Saye

    Option button in subform -> continuous forms

    Hi all, I have an unbound option button in a subform, which is in continuous form view. It defaults to no. When the form is active, it shows up gray and checked. Is there any way to make it usable? Thanks, Robert
  2. Robert Saye

    Invalid use of Null???

    Hi pablotx, Try this : Private Sub Current_LON_AfterUpdate() Dim avglon As Long Select Case [Current LON] Case 1 avglon = 30062.45 Case 5 avglon = 33351.09 Case 8 avglon = 39770.3 Case 6 avglon = 50530.54 Case 9 avglon = 100790.65...
  3. Robert Saye

    not pulling unmatched records

    Query resonding correctly Access is performing correctly. I don't understand how you can have activity on a product before first having a description of that product. It sounds like you have a fundamental flaw in the database, you can't have sales activity on chryslers if you only sell dodges...
  4. Robert Saye

    VB Error

    SQL statement looks good Hi Lory, I copied this into a test db, and changed the table and fields to my name, and the sql statement worked fine. When it breaks like that and it asks you to debug it just say yes, and hover your mouse over the txtbuilder and txtSubdivision variables, and make...
  5. Robert Saye

    Invalid use of Null???

    If you are getting an invalid use of null try this I would try to set a defaul value for avglon, you don't have a default for your select statement. So if [Current LON] doesn't fall into one of your cases, then avglon is never initialized. Then you would be trying to subtract that from...
  6. Robert Saye

    Quiz database, multiple random topics

    Mile-O-Phile is a freaking genius Well, that was almost a perfect example of what I wanted. My only problem now is should I break up my database so it will fit your form? I have it in two seperate tables: tblQuestions tblAnswers QuestionID pk...
  7. Robert Saye

    Quiz database, multiple random topics

    Hi all, I finally figured out how to write a module to get the data I need. Now I am clueless on how to get it into a form. I am attaching my database if someone could take a look at it. What I am trying to do is use the testing() method which returns 5 random questions from 3 different...
  8. Robert Saye

    Easy one

    This is from VBA help (You get VBA help by opening help from a module window).: ControlSource Property Example The following example sets the ControlSource property for a text box named AddressPart to a field named City: Forms!Customers!AddressPart.ControlSource = "City" The next example sets...
  9. Robert Saye

    Basic coding please help

    Hello, If the textbox is bound to a table, why not just set the field required property in table design view to yes. This way if the user trys to leave the form without entering a date, Access will pop a MsgBox that says dateselect cannot contain an empty value. Robert
  10. Robert Saye

    Subtracting days from a date

    Try this, in the first column of your query select all records. The next column type for a field name: DateSubtract: Date() - ([Forms]![YourFormName]![YourControlName]) Uncheck the show box, then for critera put: < 30 (Or < 31 if you want those records too). Robert
  11. Robert Saye

    Can't seem to focus

    Hello Charity, I really can't duplicate your form so I made do. You may try Me.Requery as the first line of the on click event for your command button. (That is if your Main form gets the focus when you open the form.) Just a thought... Robert
  12. Robert Saye

    Converting number to date?

    Allrighty here goes, This is the way I would do it. Create a new make table query, add all your fields * is okay, then in a new field put this expression. NewDate: ((Mid([YourNumericFieldNameHere],5,2)) & "/" & (Right([YourNumericFieldNameHere],2)) & "/" & (Left([YourNumericFieldNameHere],4)))...
  13. Robert Saye

    Concatenate Single Field

    Hi Amy, I'm not sure if this is what you want, but if you want your report to have the names like this: North NJ North PA South NC etc... Then build it in a query. Where it asks for field name type: WhateverYouWantToNameYourField: [Territory] &" "& [State] (You need the quotes to give you a...
  14. Robert Saye

    Getting the error "...too few parameters expected 2"

    I modified your code for one of my practice forms. The errors I got were caused by the following. Type mismatch error on the SET line, to fix hit tools, references, then check the Microsoft DAO 3.* and move it above Microsoft ADO 2.* (if checked). The second error I had was my control source...
  15. Robert Saye

    DRIVING ME MAD !!!! - PLEASE Help

    Phillip I didn't make myself clear, so I remembered a free db download on MS that gives dozens of example forms. Here is the link. The form syncronizing combo boxes is what you want. http://download.microsoft.com/download/access2000/Sample/2000/W9X2KMe/EN-US/FrmSmp00.exe
  16. Robert Saye

    Combo Box > form update - should be easy !!?!?

    What you want is a cascading combo box. Steo one is for your list box, create it as unbound. Set the row source type property as table/query. Set the Row Source by clicking ... next to it. This will bring up the query design view. Select your products table, for your fields select Product Name...
  17. Robert Saye

    Adding fields in 2 records into new record

    Hello all, I have a baseball statistics database I downloaded off the web. I found several errors I am trying to correct. I ran a find duplicates query on the batting statistics, and found about 50. For some reason the data is correct...
  18. Robert Saye

    ADO Recordcount Problem

    Hello, I just tried this out and it gave me the correct answer. Private Sub testing() Dim rst As ADODB.Recordset Dim cnn As ADODB.Connection Dim strSQL As String Set rst = New ADODB.Recordset Set cnn = New ADODB.Connection Set cnn = CurrentProject.Connection strSQL = "SELECT * from...
  19. Robert Saye

    Date Reminders

    Hello, It may be that your references are pointing to ADO instead of DAO. The code you are using is all DAO. You can change this by opening the module window, click on tools -> references. A list of all reference libraries pops up, scroll down to "Microsoft 3.6 (for access 2k) Object...
  20. Robert Saye

    On Mouse Move Event Help.

    Thank You, That did it. Robert
Top Bottom