Go to Post I also would not recommend shipping the gerbils with the robot. - Stuart [more]
Home
Go Back   Chief Delphi > Competition > Rules/Strategy > Scouting
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-03-2004, 23:46
kacz100 kacz100 is offline
Battle Cattle!
#1466 (Webb Robotics)
Team Role: College Student
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 96
kacz100 is on a distinguished road
Send a message via AIM to kacz100 Send a message via Yahoo to kacz100
Access Database help...

Currently I have tasked myself to create an Access database for scouting. I can easily create/delete fields quickly and do cool stuff BUT I am having 1 big problem. I want to put a picture of the robot next to the information I am gathering. After struggling for a couple days I have almost giving up. Access uses hand written code and I am lost at that. I have tried to borrow the code from other databases that do a smiliar thing, but nothing really works properly anything that would help would be appreciated. thanks!
__________________
Kacz

Team #40 Alumni 1999 - 2002
Team #885 College Student/Mentor 2003
Team #1466 College Student/Mentor 2004
  #2   Spotlight this post!  
Unread 01-03-2004, 23:58
gl75 gl75 is offline
Registered User
AKA: Greg
#0075 (RoboRaiders)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Hillsborough NJ
Posts: 16
gl75 is an unknown quantity at this point
Send a message via AIM to gl75
Re: Access Database help...

I'm not completely familiar with Access, but you could probably do one of 2 things:

- Upload the image data to a BLOB data type and store it directly in a field

or, since Access probably has a limited buffer...

- Upload the image to a directory and store the pathname in the field
__________________
Greg Liebowitz
Team 75 - RoboRaiders
Webmaster/Programmer
www.roboraiders.com
  #3   Spotlight this post!  
Unread 02-03-2004, 00:02
kacz100 kacz100 is offline
Battle Cattle!
#1466 (Webb Robotics)
Team Role: College Student
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 96
kacz100 is on a distinguished road
Send a message via AIM to kacz100 Send a message via Yahoo to kacz100
Re: Access Database help...

Quote:
Originally Posted by gl75
I'm not completely familiar with Access, but you could probably do one of 2 things:

- Upload the image data to a BLOB data type and store it directly in a field

or, since Access probably has a limited buffer...

- Upload the image to a directory and store the pathname in the field
I tried the BLOB thing and I can search for the file on the computer and save the pathname but cant display it next to the data collected.
__________________
Kacz

Team #40 Alumni 1999 - 2002
Team #885 College Student/Mentor 2003
Team #1466 College Student/Mentor 2004
  #4   Spotlight this post!  
Unread 02-03-2004, 00:10
GregT GregT is offline
Registered User
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: FL
Posts: 400
GregT will become famous soon enough
Send a message via AIM to GregT
Re: Access Database help...

Quote:
Originally Posted by kacz100
I tried the BLOB thing and I can search for the file on the computer and save the pathname but cant display it next to the data collected.

You would use an column of OLE Object data type. OR you can store the pictures in a directory with a common nameing convention (<teamnumber>.jpg) then use vba to retrieve and display that picture in a form.

Greg
__________________
The above was my opinion. I'm wrong a lot. I'm sarcastic a lot. Try not to take me too seriously.
  #5   Spotlight this post!  
Unread 02-03-2004, 00:18
kacz100 kacz100 is offline
Battle Cattle!
#1466 (Webb Robotics)
Team Role: College Student
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 96
kacz100 is on a distinguished road
Send a message via AIM to kacz100 Send a message via Yahoo to kacz100
Re: Access Database help...

How would I use vba to do that, I don't know how to code.
__________________
Kacz

Team #40 Alumni 1999 - 2002
Team #885 College Student/Mentor 2003
Team #1466 College Student/Mentor 2004
  #6   Spotlight this post!  
Unread 02-03-2004, 12:38
GregT GregT is offline
Registered User
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: FL
Posts: 400
GregT will become famous soon enough
Send a message via AIM to GregT
Re: Access Database help...

Quote:
Originally Posted by kacz100
How would I use vba to do that, I don't know how to code.

I don't know (sorry), I'm not real big on visual basic. You can probably figure it out through google though, or use the microsoft access help and look up OLE.

Greg
__________________
The above was my opinion. I'm wrong a lot. I'm sarcastic a lot. Try not to take me too seriously.
  #7   Spotlight this post!  
Unread 03-03-2004, 13:46
Lindsey Lindsey is offline
Registered User
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Northville, MI
Posts: 42
Lindsey will become famous soon enough
Re: Access Database help...

I had this problem last year (I can't write code either)
I ended up figuring out how to put pictures in after the season was over.

1. Create a field in your table to hold the pictures (Design View)
2. Set the Data Type to OLE Object
3. Switch to Data Sheet view and right click in the cell instead typing in data
4. Select Insert Object
5. Select Create From File
6. Chose Browse and select the file or type in the location

The picture won't show up in Data Sheet view, you can only view the pictures through a form or a report

Hope this helps
Lindsey
  #8   Spotlight this post!  
Unread 17-03-2004, 15:45
Smrtman5's Avatar
Smrtman5 Smrtman5 is offline
Dr. Bridgeport
AKA: Jon H
FRC #0041 (Robo-wariors)
Team Role: College Student
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Warren
Posts: 63
Smrtman5 is on a distinguished road
Send a message via AIM to Smrtman5
Re: Access Database help...

i am trying to make a scouting database for my palm, with dropdown menus. However, i dont know where to start. Hopefully someone could tell me what program to use and how to make a dropdown menu. Or if anyone has a program they could give me so i could add/ edit it, that would be great. Thanks
__________________
Art is just an excuse for poor craftsmanship.

- Jon H
Team 41
Rowan University '10 Mechanical Engineering
  #9   Spotlight this post!  
Unread 17-03-2004, 16:43
Jeremiah Johnson's Avatar
Jeremiah Johnson Jeremiah Johnson is offline
Go VOLS!!
AKA: Budda648
no team (QC Elite)
Team Role: Alumni
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Davenport, IA
Posts: 1,476
Jeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond reputeJeremiah Johnson has a reputation beyond repute
Send a message via AIM to Jeremiah Johnson Send a message via MSN to Jeremiah Johnson
Re: Access Database help...

I know that last year Wildstang and the SigmaC@ts used a palm scouting database that you could load off of the wildstang site and download it all to SOAP. I don't know if they are doing it again this year but it would be an easier way to do it instead of making it yourself. I would check with Wildstang and SigmaC@t to see if they have it available again this year.
__________________
Do The Tyler!

XBOX Live Gamertag = theVelvetLie
  #10   Spotlight this post!  
Unread 17-03-2004, 21:00
Greg's Avatar
Greg Greg is offline
Registered User
FRC #1075 (Sinclair Sprockets)
Team Role: College Student
 
Join Date: Nov 2002
Rookie Year: 2003
Location: Whitby, Ontario, Canada
Posts: 108
Greg is on a distinguished road
Send a message via ICQ to Greg Send a message via MSN to Greg
Re: Access Database help...

This is an interesting problem I have done quite a lot of VB, so I wrote the code that shows an image of the robot on the form in an Access DB. Since you probably use a form for data entry/display, this should be what you want.

The only thing I wanted to point out is that the images are not actually stored in the database. The code only stores the path to the images. So they still have to sit on the hard drive in some folder. Why? Because Access is very inefficient at storing images and has a file size limit of around 1 GB. And this limit is reached very quickly with just a hundred JPEGs stored as OLE objects.

You can grab the example database off our web server here: http://www.sinclairsprockets.com/imagedb.zip. I hope you find it useful. And if you rename the database table you'll need to edit the code.
  #11   Spotlight this post!  
Unread 18-03-2004, 10:23
Greg's Avatar
Greg Greg is offline
Registered User
FRC #1075 (Sinclair Sprockets)
Team Role: College Student
 
Join Date: Nov 2002
Rookie Year: 2003
Location: Whitby, Ontario, Canada
Posts: 108
Greg is on a distinguished road
Send a message via ICQ to Greg Send a message via MSN to Greg
Re: Access Database help...

I just found a very stupid bug in the DB I made yesterday Anyway, its fixed now and I uploaded the new version to the web site. If you already downloaded the old one please get the new version instead. Sorry
  #12   Spotlight this post!  
Unread 18-03-2004, 11:00
WCS V WCS V is offline
Registered User
#1168 (Malvern Prep Robotics)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Malvern, PA
Posts: 16
WCS V is an unknown quantity at this point
Re: Access Database help...

Type "Make It Work " and slam the keyboard repeatedly. - This usually works well for me.
__________________
WCS - Chief Technology Officer Malvern Prep Robotics #1168
"I can only do that in the code if its physically possible for it to happen."
  #13   Spotlight this post!  
Unread 18-03-2004, 19:18
Pierson's Avatar
Pierson Pierson is offline
Registered User
no team
Team Role: College Student
 
Join Date: Nov 2001
Rookie Year: 2000
Location: Los Angeles, CA
Posts: 881
Pierson is a glorious beacon of lightPierson is a glorious beacon of lightPierson is a glorious beacon of lightPierson is a glorious beacon of lightPierson is a glorious beacon of lightPierson is a glorious beacon of light
Send a message via AIM to Pierson
Re: Access Database help...

Quote:
Originally Posted by Lindsey
I had this problem last year (I can't write code either)
I ended up figuring out how to put pictures in after the season was over.

1. Create a field in your table to hold the pictures (Design View)
2. Set the Data Type to OLE Object
3. Switch to Data Sheet view and right click in the cell instead typing in data
4. Select Insert Object
5. Select Create From File
6. Chose Browse and select the file or type in the location

The picture won't show up in Data Sheet view, you can only view the pictures through a form or a report

Hope this helps
Lindsey

One thing you will need to remember is that you will most likely need to resize the picture to something like 200x200 or 300x300.

I created our team's DB in access and got pictures working in January and I now have queries that figure out how long a person has been on a team, how much money they have brought in and other fun things.

If you have any questions, please feel free to PM or e-mail me: PC@BPRobotics.com.
__________________
Pierson
Former Captain & Fundraiser of Team 360
__________________
Join in on these fun threads:
Three Worded Story
Word Association
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scouting Database Robert Hafner General Forum 4 20-02-2004 23:37
ms access database starting point. swando Scouting 10 19-05-2003 16:47
Übergeeks scouting database, and the competitions Jeremy_Mc Scouting 10 09-03-2003 00:26
Playbook now included with Team 340 database archiver 2001 0 24-06-2002 01:33
We have to organize to win archiver 2001 18 24-06-2002 00:00


All times are GMT -5. The time now is 02:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi