473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Importing MS Access Databases to VB

Windows XP Home Edition
VB 2005
MS Access 2003

I am having problems importing mdb information from access to visual basic. The first application worked fine, but the second one refuses to work, giving me a list of build errors pertaining to "[whatever] not defined..." see below

Error 1 Type 'AirlineReservationForm.Sennello_06DataSet' is not defined. C:\Documents and Settings\msennel1\Desktop\hw6\Airline Reservations\AirlineReservationForm\AirlineReserva tionForm\AirlineReservationForm.Designer.vb 28 37 AirlineReservations
Error 2 Type 'AirlineReservationForm.Sennello_06DataSetTableAda pters.FlightsTableAdapter' is not defined. C:\Documents and Settings\msennel1\Desktop\hw6\Airline Reservations\AirlineReservationForm\AirlineReserva tionForm\AirlineReservationForm.Designer.vb 30 38 AirlineReservations
Error 3 Type 'AirlineReservationForm.Sennello_06DataSetTableAda pters.ReservationsTableAdapter' is not defined. C:\Documents and Settings\msennel1\Desktop\hw6\Airline Reservations\AirlineReservationForm\AirlineReserva tionForm\AirlineReservationForm.Designer.vb 37 43 AirlineReservations
Error 4 Type 'AirlineReservationForm.Sennello_06DataSet' is not defined. C:\Documents and Settings\msennel1\Desktop\hw6\Airline Reservations\AirlineReservationForm\AirlineReserva tionForm\AirlineReservationForm.Designer.vb 195 45 AirlineReservations
Error 5 Type 'AirlineReservationForm.Sennello_06DataSetTableAda pters.FlightsTableAdapter' is not defined. C:\Documents and Settings\msennel1\Desktop\hw6\Airline Reservations\AirlineReservationForm\AirlineReserva tionForm\AirlineReservationForm.Designer.vb 197 46 AirlineReservations
Error 6 Type 'AirlineReservationForm.Sennello_06DataSetTableAda pters.ReservationsTableAdapter' is not defined. C:\Documents and Settings\msennel1\Desktop\hw6\Airline Reservations\AirlineReservationForm\AirlineReserva tionForm\AirlineReservationForm.Designer.vb 204 51 AirlineReservations


What I have in Access are two tables that link a list of passengers to a list of flights. The flight table has 4 fields: flight number (Key); departure city; arrival city; date. The passenger table has 2 fields: flight number; and name (key). They are linked via flight number. Queries were built to display the passenger list for each of the 5 destination cities: Boston, LA, Toronto, Dallas, and San Diego. The GUI contains (among other things not pertinent) a combobox, three textboxes, and a listbox. The combobox is supposed to display the flight number and allow the user to select from a dropdown list which flight number to display. The textboxes (located below the combobox) then display the rest of the flight information: Departure city, arrival city, and date. A listbox to the right of the textboxes is supposed to then display the related passenger list based on the flight number. However, I cannot get the import to work AT ALL. I am following the "Add Data Source" process to a 't' and when I debug (even with no values assigned to the controls) the above errors pop up. I know I need to give more information, but I figured this would at least be a start. Oh and the Access part is working fine in access.

In short, what am I doing wrong and how do I fix it?

ps how do I attach a screenshot to this post?
Oct 31 '07 #1
4 1351
debasisdas
8,127 Expert 4TB
Question moved to .NET Forum.
Oct 31 '07 #2
Shashi Sadasivan
1,435 Expert 1GB
Hi,
Have you copied the dataset files from the previous project to the 2nd one?
If so refrence the namespaces accordingly...though that dosent seem to be the issue.

you can add a screen shot by editing the post !
Oct 31 '07 #3
OK I think I've figured most of it out, but I've come to the query designer screen and it is not recognizing the SQL code I'm typing in. Specifically, in an attempt to return the name of each passenger in the listbox, the code I have input automatically converts to

WHERE (Name = '@name')

instead of

WHERE (Name = @name)

and I remember it had something to do with declaring the "@" symbol. Does anybody know where I'm going with this?
Oct 31 '07 #4
bumpbumpbumpbumpbump
Nov 1 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mark | last post by:
All, As you can see below, I have had problems with inquisitive souls looking at data they shouldn't be. I though disabling the ability to create new databases using my workgroup would stop this...
2
by: Sara | last post by:
Hi - I've been reading the posts for a solution to my query, and realize that I should ask an "approch" question as well. We receive our production data from a third party, so my uers import...
5
by: dixie | last post by:
If I sent a user an empty database container - dB with no tables and I needed them to import their tables into it and one of their tables was a hidden table with the prefix Usys, is there any way...
1
by: ANSWER | last post by:
Is there any way I could disable user to create a new database and import all of my tables and queries into his database. I make .mde, disable shift+Enter, make logon users module (with your help...
2
by: Snozz | last post by:
The short of it: If you needed to import a CSV file of a certain structure on a regular basis(say 32 csv files, each to one a table in 32 databases), what would be your first instinct on how to...
4
by: JamesSykes | last post by:
Hi, I am relatively new to Access and VBA. I am trying to import a number of database files (just really want the contents of their tables) from a specified folder into a master table that...
1
by: aconti74 | last post by:
Hello I am new to vba programming/coding. I am writing a program that goes through a directory of text files and imports them into the database. The problem is eventually the database gets to big...
3
by: HistoricVFP | last post by:
Hello, I’ve been given the task of importing .dbf files from a very old version of Visual FoxPro (version 2.1) into Access (2003). When I import the data straight to Access it errors with: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.