MartyConnelly
martyconnelly at shaw.ca
Fri Nov 17 21:03:58 CST 2006
How about something simple like Dim dbs As Database ' Modify this line to include the path to Northwind ' on your computer. Set dbs = OpenDatabase("Northwind.mdb") ' Create a new record in the Employees table. The ' first name is Harry, the last name is Washington, ' and the job title is Trainee. dbs.Execute " INSERT INTO Employees " _ & "(FirstName,LastName, Title) VALUES " _ & "('Harry', 'Washington', 'Trainee');" dbs.Close You could ask a question like this to append records to a table or start with empty table If MsgBox("Do you want to create a new file table (yes: create, no: append)", vbYesNo) = vbYes Then DoCmd.RunSQL "DELETE DISTINCTROW Employees.FirstName FROM Employees;" End If Pedro Janssen wrote: >Thanks Marty, > >Making the cascade comboboxes is no problem, but storing the data in a table >is the problem. >Is there an easier way to do this then the example in the second example >that you refered to. > >Pedro Janssen > > > >----- Original Message ----- >From: "MartyConnelly" <martyconnelly at shaw.ca> >To: "Access Developers discussion and problem solving" ><accessd at databaseadvisors.com> >Sent: Friday, November 17, 2006 11:32 PM >Subject: Re: [AccessD] help with cascade combobox > > > > >>Maybe these examples will help >>http://www.rogersaccesslibrary.com/TableOfContents3.asp >> >>CascadingComboBoxes.mdb ( beginner ) >>This sample illustrates how to restrict the value of one combo box based >>on the value of another. >> >>CascadingComboInSubform.mdb ( intermediate ) >>Illustrates how to use Cascading Comboboxes in a continuous subform. >> >> >>Pedro Janssen wrote: >> >> >> >>>Hello Group, >>> >>>i need some help with an cascade combobox, the storage of the data in a >>>table. >>> >>>I have a small example database, who can help me with this? >>> >>>Thanks Pedro Janssen >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada