Board index » Help Help » Technical Support




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Tue Aug 28, 2007 1:59 pm 
Offline
User avatar
Unthought Known
 Profile

Joined: Sat Dec 11, 2004 8:08 am
Posts: 6583
I have a table I created from an imported text file.

U4 SO8N
U5 SO8N
U6 SO8N
U7 SO8N
U8 SO8N
U9 SO8N

*NET*
*SIGNAL* SOL_HI_2-1
D87.2 R230.2 R234.2 M3.2
*SIGNAL* N9893025
Q29.2 R412.2

It's half like the top and half like the bottom, thus a single common delimiter does not work.

So I imported it all delimited by spaces, so it splits up the bottom half perfectly. The problem is, the top half has all the extra fields needed to split up the bottom.

so I have like 16 fields across, while the top half of the table only needs 2. I am trying to fix this by Querying to find the U9 and S08N for example and combine it in a new table, but I don't know how.


Any pointers, suggestions or anything would be a HUGE help.

_________________
The folks just call him Buckethead...

We are trapped in the belly of this horrible machine, and the machine is bleeding to death.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 1:25 am 
Offline
User avatar
Administrator
 Profile

Joined: Sat Oct 16, 2004 10:51 pm
Posts: 14534
Location: Mesa,AZ
I don't quite understand what you're trying to do... So you want them in the same table, but you want the rows to have different numbers of fields? I'm a little confused at your description.

_________________
John Adams wrote:
In my many years I have come to a conclusion that one useless man is a shame, two is a law firm, and three or more is a congress.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 1:27 am 
Offline
User avatar
Leak Inspector
 WWW  Profile

Joined: Sun Oct 17, 2004 5:25 pm
Posts: 35180
Location: Brasil
Gender: Male
sql ruined my life

_________________
need you, dream you, find you, taste you, fuck you, use you, scar you, break you, lose me, hate me, smash me, erase me, kill me....


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 2:20 am 
Offline
User avatar
Unthought Known
 Profile

Joined: Sat Dec 11, 2004 8:08 am
Posts: 6583
Well I got around one of the problems lol.

My problem is for the second half. I am trying to split up all the data, into a new table. I want to make a new table with

Signal Connections FIGURE 1
SOL_HI_2-1 D87.2 R230.2 R234.2 M3.2

so I can easily compare a template setup to a recently altered setup to check for mistakes. At the moment, each piece of info is separated by a space is in a separate field.

So

Field1 Field2 etc
*Signal* SOL_HI_2-1 etc

I am now trying to run through, via SQL, and assign the D87.2 R230.2 R234.2 M3.2 fields all under the Connection heading in the new table. Thus I have to append it all together ala Figure 1. I basically imported all this from a text file, parsed it up, then reformed it in a new table (minus the unnecessary information). This allows me to compare this to an altered table really easily(once it's built). I don't know if it makes any sense to anyone reading this now :( I am pretty far into this and it's becoming quite jumbled.

_________________
The folks just call him Buckethead...

We are trapped in the belly of this horrible machine, and the machine is bleeding to death.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 2:24 am 
Offline
User avatar
Needs to start paying for bandwidth
 Profile

Joined: Fri Sep 02, 2005 5:20 am
Posts: 31173
maybe try importing it from an excel file.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 2:34 am 
Offline
User avatar
Unthought Known
 Profile

Joined: Sat Dec 11, 2004 8:08 am
Posts: 6583
conoalias wrote:
maybe try importing it from an excel file.


Can't :S The Orcad electrical schematic program outputs into this specific text file.

_________________
The folks just call him Buckethead...

We are trapped in the belly of this horrible machine, and the machine is bleeding to death.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 2:48 am 
Offline
User avatar
Administrator
 Profile

Joined: Sat Oct 16, 2004 10:51 pm
Posts: 14534
Location: Mesa,AZ
Generally, database software should be used for database application. I'm not sure what you're trying to accomplish, but it doesn't exactly sound like it's a database...

_________________
John Adams wrote:
In my many years I have come to a conclusion that one useless man is a shame, two is a law firm, and three or more is a congress.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 2:50 am 
Offline
User avatar
Unthought Known
 Profile

Joined: Sat Dec 11, 2004 8:08 am
Posts: 6583
It's a 2000 record database file. I import it in from a text file, then use the database to compare the two tables to check for discrepancies.

_________________
The folks just call him Buckethead...

We are trapped in the belly of this horrible machine, and the machine is bleeding to death.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 2:55 am 
Offline
User avatar
In a van down by the river
 Profile

Joined: Sun Oct 17, 2004 6:15 am
Posts: 33031
have you tried


format C: :haha:

_________________
maybe we can hum along...


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 2:56 am 
Offline
User avatar
Unthought Known
 Profile

Joined: Sat Dec 11, 2004 8:08 am
Posts: 6583
Peeps wrote:
have you tried


format C: :haha:


I hope your penis falls off.

_________________
The folks just call him Buckethead...

We are trapped in the belly of this horrible machine, and the machine is bleeding to death.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 4:11 am 
Offline
User avatar
Administrator
 Profile

Joined: Sat Oct 16, 2004 10:51 pm
Posts: 14534
Location: Mesa,AZ
EastHastings wrote:
It's a 2000 record database file. I import it in from a text file, then use the database to compare the two tables to check for discrepancies.


I don't know that a database is the best way to do that. For one thing, a database has no concept of order. How are you going to make sure you're comparing the right rows?

It'd probably be easiest to use a spreadsheet for this, since a spreadsheet actually has ordered rows. If you know the white space isn't going to change, you can just copy and paste the entire text into one cell, and paste the new text into another cell. Then, go to a third cell, and use the EXACT function to compare them.

_________________
John Adams wrote:
In my many years I have come to a conclusion that one useless man is a shame, two is a law firm, and three or more is a congress.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 12:05 pm 
Offline
User avatar
Unthought Known
 Profile

Joined: Sat Dec 11, 2004 8:08 am
Posts: 6583
It has to be automated, with a form gui upfront. I have a primary key set by access. The SQL works great for searching through the data... SELECT * kind of thing. It's just kind of difficult picking out some specifics, unfortunately. The bossman wanted it in access too. It's just alot more dynamic for this purpose.

_________________
The folks just call him Buckethead...

We are trapped in the belly of this horrible machine, and the machine is bleeding to death.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 1:51 pm 
Offline
User avatar
Administrator
 Profile

Joined: Sat Oct 16, 2004 10:51 pm
Posts: 14534
Location: Mesa,AZ
EastHastings wrote:
It has to be automated, with a form gui upfront. I have a primary key set by access. The SQL works great for searching through the data... SELECT * kind of thing. It's just kind of difficult picking out some specifics, unfortunately. The bossman wanted it in access too. It's just alot more dynamic for this purpose.


It'd probably take no more than 20 minutes to write a program that compares the two files. Even a script that is run locally on a browser could do the job. I'm not sure if there's a way to automate what you're doing in Access, because Access is meant to do something completely different. It's like using a dishwasher to do your laundry.

_________________
John Adams wrote:
In my many years I have come to a conclusion that one useless man is a shame, two is a law firm, and three or more is a congress.


Top
 
 Post subject: Re: Microsoft Access, SQL and Visual Basic help for Table Manipu
PostPosted: Wed Aug 29, 2007 1:59 pm 
Offline
User avatar
Unthought Known
 Profile

Joined: Sat Dec 11, 2004 8:08 am
Posts: 6583
The SQL script to compare the files is very straight forward. It's just a matter of getting the information into the stupid program and parsing some of it. As well as learning all of this lol.

_________________
The folks just call him Buckethead...

We are trapped in the belly of this horrible machine, and the machine is bleeding to death.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

Board index » Help Help » Technical Support


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Sun Feb 01, 2026 4:58 pm