Search results

  1. C

    Close Current Form and Open a New One Code

    it didn't work. Here is my code: Private Sub Command20_Click() On Error GoTo Err_Command20_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "SearchResult" DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_Command20_Click: Exit Sub Err_Command20_Click: MsgBox...
  2. C

    get the Database window back after hiding it.

    Hi, I have a question; If I hide the Database window and uncheck the Allow Full Menu checkbox from Tools--> Startup The next time I open the application how can I get them back? Any help will be very appreciated, Thanks, CS.
  3. C

    Close Current Form and Open a New One Code

    Hi I need a button code in the OnClick event. I want when clicking on the button, to close the currently opened form and open another one. Any help will be very much appreciated! Thanks guys! C.
  4. C

    Add a serial number to each row in a report

    Thanks Pat
  5. C

    Add a serial number to each row in a report

    Hi, I have a report that contains names, (each name in a row), I want to create a serial number for each name (i.e. 1, 2 , 3 , 4 ...) Please note that these names are grouped in sections, I want in each section the serial starts from 1 Regards, CS.
  6. C

    Data Misnatch in NotInLIst Event

    I think i'm going to change the structure back to One-To-Many (one parent can have more than a student in this school), I don't want the user to create the student, then the parent and afterwards" manually" attach their IDs. I'm trying it now..
  7. C

    Data Misnatch in NotInLIst Event

    Thanks alot Rural. I was looking at Northwind and I'll check this link now. You are my hero!
  8. C

    Data Misnatch in NotInLIst Event

    me too, I'm lost too! actually I have 2 equirement from the user: 1) the student information has to be added before the parent information 2) a parent can have more than one student ( we need only one parent for each student) so it's actually a one-to-many relationship i did it the way I did...
  9. C

    Data Misnatch in NotInLIst Event

    where should I do the update?
  10. C

    Data Misnatch in NotInLIst Event

    but how are they going to be linked in my structure I'm linking them using another table student_parent which will have the primary keys of both students and parents?
  11. C

    Data Misnatch in NotInLIst Event

    I passed the Auto number (because it's the primary key) not the Student ID. but in the Open form event in the parent form it highlighted Me.Student_Auto with an error (Method or data member not found)
  12. C

    Data Misnatch in NotInLIst Event

    where and how? Can you please explain I didn't do something like this before.
  13. C

    Data Misnatch in NotInLIst Event

    Rural, I'm getting desprate about thing combo box thing and I'm really on a deadline. so I'm trying another thing and I need your help. I'll put student information and parent information in 2 separate form. First the student information is entered normally and then a button is clicked to...
  14. C

    Data Misnatch in NotInLIst Event

    Rural, I tried to do it for the parent instead of the student, but same thing I'm attaching a sample of the database, The form "GUARDIAN_PARENT4" it has 2 tabs, first one for student and the second one for the parent. In the parent tab, I put the combo box in which the IDs are, try to add an...
  15. C

    Data Misnatch in NotInLIst Event

    you mean requery it when clicking the close button of the "add form" ? I'd really appreciate it if you could a attached a sample of your system (without any data). I just want to take a look at how you did it. I know there is something wrong with mine I just don't know what!
  16. C

    Data Misnatch in NotInLIst Event

    Same thing. I got the Could not Locate message.
  17. C

    Data Misnatch in NotInLIst Event

    ok I changed the code now whenever I come back from the "add form" to the combo box in the original form I get a code error when I say debug it takes me to AfterUpdate Code and hightlight: DoCmd.Requery There is one thing I noticed: my relationship is as follow: Parent: has an auto number as...
  18. C

    Data Misnatch in NotInLIst Event

    When I enter a new ID in the combo box the NotInList event kicks in and it asks whether I want to add it to the list, I say yes and it takes me to the add form where I add the related information (the system gives it an auto number, for example 49) I go back to the combo box when I try to...
  19. C

    Data Misnatch in NotInLIst Event

    yes this is my new one: Private Sub Combo48_AfterUpdate() DoCmd.Requery ' Get any changes to the table first. ' Find the record that matches the control. Me.RecordsetClone.FindFirst "[Auto] = " & Me.Combo48.Column(0) If Not Me.RecordsetClone.NoMatch Then Me.Bookmark =...
  20. C

    Data Misnatch in NotInLIst Event

    sorry, same thing. Why do you think it keeps giving me the Couldn't Locate message?
Back
Top Bottom