473,799 Members | 3,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Importing MS Access Databases to VB

22 New Member
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 'AirlineReserva tionForm.Sennel lo_06DataSet' is not defined. C:\Documents and Settings\msenne l1\Desktop\hw6\ Airline Reservations\Ai rlineReservatio nForm\AirlineRe servationForm\A irlineReservati onForm.Designer .vb 28 37 AirlineReservat ions
Error 2 Type 'AirlineReserva tionForm.Sennel lo_06DataSetTab leAdapters.Flig htsTableAdapter ' is not defined. C:\Documents and Settings\msenne l1\Desktop\hw6\ Airline Reservations\Ai rlineReservatio nForm\AirlineRe servationForm\A irlineReservati onForm.Designer .vb 30 38 AirlineReservat ions
Error 3 Type 'AirlineReserva tionForm.Sennel lo_06DataSetTab leAdapters.Rese rvationsTableAd apter' is not defined. C:\Documents and Settings\msenne l1\Desktop\hw6\ Airline Reservations\Ai rlineReservatio nForm\AirlineRe servationForm\A irlineReservati onForm.Designer .vb 37 43 AirlineReservat ions
Error 4 Type 'AirlineReserva tionForm.Sennel lo_06DataSet' is not defined. C:\Documents and Settings\msenne l1\Desktop\hw6\ Airline Reservations\Ai rlineReservatio nForm\AirlineRe servationForm\A irlineReservati onForm.Designer .vb 195 45 AirlineReservat ions
Error 5 Type 'AirlineReserva tionForm.Sennel lo_06DataSetTab leAdapters.Flig htsTableAdapter ' is not defined. C:\Documents and Settings\msenne l1\Desktop\hw6\ Airline Reservations\Ai rlineReservatio nForm\AirlineRe servationForm\A irlineReservati onForm.Designer .vb 197 46 AirlineReservat ions
Error 6 Type 'AirlineReserva tionForm.Sennel lo_06DataSetTab leAdapters.Rese rvationsTableAd apter' is not defined. C:\Documents and Settings\msenne l1\Desktop\hw6\ Airline Reservations\Ai rlineReservatio nForm\AirlineRe servationForm\A irlineReservati onForm.Designer .vb 204 51 AirlineReservat ions


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 1395
debasisdas
8,127 Recognized Expert Expert
Question moved to .NET Forum.
Oct 31 '07 #2
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
Hi,
Have you copied the dataset files from the previous project to the 2nd one?
If so refrence the namespaces accordingly...t hough that dosent seem to be the issue.

you can add a screen shot by editing the post !
Oct 31 '07 #3
captainphoenix
22 New Member
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
captainphoenix
22 New Member
bumpbumpbumpbum pbump
Nov 1 '07 #5

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

Similar topics

3
1816
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 but it doesn't. All they have to do now is create a new database using the default wrkgroup, close it and then open it again whilst joined to my workgroup and they can import again. Can someone please help me stop these people importing from the FE...
2
2319
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 the data from Excel into the appropriate tables. There are 6 different databases that receive data, though 4 of them only get one table each. I have learned how to automate the data import through
5
3184
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 in code I can get that table imported without them having to go to options and show hidden tables and then import it manually? dixie
1
1448
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 sometimes before) but still my tables and queries are free to take. If you know couple solutions please let me know so I can decide. Thanks
2
3185
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 set this up so as to do it reliably and minimize overhead? There are currently no constraints on the destination table. Assume the user or some configuration specifies the database name, server name, and filename+fullpath. The server is SQL...
4
4449
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 contains all records and is updated periodically (via imports). I have tried using a batch process (this limits me to importing specified files) but ideally would like to be able just to import all databases (or just their respective tables) irrespective...
1
3243
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 and needs to be compacted. I know how to compact on exit but how do you do it in a loop using vba? My old program in basic did it because it was external to access. Any ideas? 1.import text file 2.loop - check size
3
5179
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: External table is not in the expected format. (Error 3274) I’ve tried the following but it did not work: “To import data from a FoxPro database, use the Microsoft Visual FoxPro ODBC driver. To do so, follow these steps: 1. Click Start, and then...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10214
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.