Search results

  1. A

    subform error - Help!

    Are you trying to use a control as a subform? You must use a form. The third page of a tab control is still part of that tab control. Maybe I'm mixed up here, but I suggest that you make sure your subform is an actual form rather than a control. Then let me know if you still have problems.
  2. A

    adding new entry to combo boxes

    You can use code that, upon receiving an error, will bypass the system message you're receiving. Put this code in the 'On Error' event of your form. A message box should show if you get an error. The message box will give the error number. Then you can edit the code to bypass the error. Let...
  3. A

    Please, please someone help

    One other point: Lots of the standard things done in coding can also be done using macros. Macros can use conditional statements (if this is true then do this...) as well, and are easier to understand for people who don't code as much. You might try using macros to do what you want to do...
  4. A

    Change BackColour & Msg Display

    Try creating a command button, and putting your code in its On_Click event. Click it and see if the color changes. If the color changes, then you probably don't understand how your events are working (ex: When After Update executes). If the color does not change there's still some problem...
  5. A

    Table or query

    When I started out, I didn't understand how to use fields from several tables on one form and it drove me nuts! Queries have eased my troubles. I make a query that contains whichever fields I want from any table and base my form on it. Plus all the bonuses Jack mentioned. Ahhhh, isn't it...
  6. A

    SubForm Problem

    Try: forms!frmMainForm.Form.subSubForm2.requery where frmMainForm is the name of the subforms' parent form. and where subSubForm2 is the name of the second subform (detailbox I think). -Mark
  7. A

    Validation

    You need to use DLookup. This built-in function goes through all the records in your table and checks the specified field. It looks for whatever you put in the criteria (in this case table field must equal the form control value). If it finds the search material, then it does whatever you...
  8. A

    Change BackColour & Msg Display

    As far as I can tell, 255 is red. I code a little differently, though. I'd probably do this: Me.txtYourTextControl.BackColor = 255 Anyway, I don't think that matters. My guess is that you are never reaching this code. By that, I mean that your if statement is coming back as a False and...
  9. A

    opening a form from a form

    Yeah. You see, this is done with coding. But Access makes this easy for newbies by doing all the coding for you. After the button is added, if you use the wizard as suggested, look at the Event tab of the properties window for your new combo box. You may notice that the On Click event has an...
  10. A

    SEARCHES

    Did you use a wizard? On your toolbox make sure the magic wand tool is pressed. Then add a combo box to your form. This should make the process simple. If you did not use the wizard, this may be a problem: It is possible that your combo box is not pointing to the table where your data lies...
  11. A

    Please, please someone help

    This all should be done with coding. Are you familiar with coding? If so, what you need to do is use some conditional statements to analyze your data and set the values of your fields depending on the data. I'll assume you're only showing data for one record at a time (no list boxes/combo...
  12. A

    Lock out MOST fields, but not all if ...

    See my reply to Hayley Baxter "General Advice on Forms". In your case, you might try a combo box, command buttons, or option buttons. If you need help with the code, then let me know.
  13. A

    General advice on forms

    What I personally like to do is have a command button or toggle button on my form that locks/unlocks any worrisome fields. I do this with code. When the user clicks the button, I set the locked property of each field I want to protect to yes (locked). I also put in some statements that if the...
  14. A

    copy textbox value(unbound)to bound textbox

    Put this in the AfterUpdate event proceedure of your first text box. Me.txtYourTextBox2 = Me.txtYourTextBox1 Reply if you need more help.
  15. A

    Command Button

    The reason for the error is that sometimes when you delete a control that has an event procedure written in code, Access just deletes the control and leaves the code. My guess is that you have made a control with a wizard and assigned it a name like "cmdOpen". Then you deleted the button...
  16. A

    One box, many uses.

    In a tabular subform, I have a combo box that shows for each record. This combo box performs several operations. On Not In List, it opens a form to add a new list item. On Current, It sets the Picture property of an Image control on my main form equal to a path chosen from the combo box. On...
  17. A

    VBA code error

    http://www.access-programmers.co.uk/ubb/Forum1/HTML/006055.html Try this and let me know if you need more.
  18. A

    Help with Form population

    Newbe, hah? Do you know code? If so, you may set the text of a text box like this: Forms!frmForm!txtControl = "Your Value" where frmForm is the form on which the control resides, txtControl is the control (in your case a text box), and Your Value is whatever you want to set the control as. I...
  19. A

    if field blank

    If (IsNull(me.BoxNumber)) Then me.Storage = "Not Stored" End If Did your code look like this? [This message has been edited by Accessable (edited 01-17-2002).]
  20. A

    Problem with 'Like' criteria

    I have a similar question. I want my query to lookup criteria for a field from a textbox control on a form. I currently have it set like this: Criteria: [Forms]![frmSearchForm]![txtTextBox] How can I do this same thing, but add a "Like" to the beginning. I bet this is very simple and just...
Back
Top Bottom