GeoffS Level: VB Lord

 Registered: 29-09-2004 Posts: 536
|
Re: Include form created in Access in Express Edition project
Hi Diane,
Sorry, but it cannot be done. The Forms engine for Access is totally different than the VB.NET engine, and since Access stores the Form definition internally you cannot get at the coding to try and adapt it. You will need to create the Form from scratch in your VB.NET Express Development environment.
This will be the easy part, as you do it in much the same way as you did in Access, by dragging a Textbox control from your toolbox and dropping it on the Form.
The hard part will be the coding for the search, as I am guessing that if you have used the Access Wizard to create the Event code for your "Search" button, all that is doing is invoking the inbuilt "Find" dialog box. You cannot do this in VB, and will need to create your own dialog - another Form with a Textbox to enter the string to search for and a button to start the search. Then put code in the Button_Click Event to get the record that matches your search string, and display it on your first Form.
I would suggest that in your VB.NET Express Development environment you click "Help" on the toolbar and select "How do I?" then select "Data Access" - this will help you to understand what you need to do.
____________________________
multi-tasking - the ability to hang more than one app. at the same time.
|