473,386 Members | 1,758 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,386 software developers and data experts.

How can I enter several lines of text as a criterion and return several lines from my table?

Right now at work, I get forms e-mailed to me in an Excel chart with a
serial number in one column and a new expiration date for a device's
trial period in another column.

For a while, when people only sent forms with one or two lines, I
didn't mind making a simple parameter query that searched for a serial
number (ESN) and showed me the relevant line of my office's tracking
database so I could change the date, etc.

Here's how it looks:
http://klg.cps.com/temp/googlegroups/accesscurrent1.gif
http://klg.cps.com/temp/googlegroups/accesscurrent2.gif

However, when I get 6-20 requests on the same form, it would be really
nice to just hilight the serial number column from the Excel form I
received...
http://klg.cps.com/temp/googlegroups...ionrequest.gif
....paste it into a form or something in Access, and have a query pop up
that shows the relevant lines of my database for all of those serial
numbers.

I have searched every keyword on Google Groups and Google that I can
think of. I've looked in reference manuals. I'm just plain stuck and
can't figure out how to do this.

If I'm asking in the wrong place, please redirect me. Thank you.

-KitKat

Dec 21 '05 #1
5 1338
KitKat wrote:
Right now at work, I get forms e-mailed to me in an Excel chart with a
serial number in one column and a new expiration date for a device's
trial period in another column.

For a while, when people only sent forms with one or two lines, I
didn't mind making a simple parameter query that searched for a serial
number (ESN) and showed me the relevant line of my office's tracking
database so I could change the date, etc.

Here's how it looks:
http://klg.cps.com/temp/googlegroups/accesscurrent1.gif
http://klg.cps.com/temp/googlegroups/accesscurrent2.gif

However, when I get 6-20 requests on the same form, it would be really
nice to just hilight the serial number column from the Excel form I
received...
http://klg.cps.com/temp/googlegroups...ionrequest.gif
...paste it into a form or something in Access, and have a query pop up
that shows the relevant lines of my database for all of those serial
numbers.

I have searched every keyword on Google Groups and Google that I can
think of. I've looked in reference manuals. I'm just plain stuck and
can't figure out how to do this.

If I'm asking in the wrong place, please redirect me. Thank you.

-KitKat

I think I were to automate your process, I'd link the Excel spreadsheet
to the table. (Look at the Connect property in help plus Google for
linking objects like a spreadsheet to the database). You can
temporarily link the spreadsheet, then remove the link at your
discretion. Or take a look at TransferSpreadsheet

Since the spreadsheet is now available for use as a table, you can write
a query on the fly to use it as the rowsource for a combo or listbox.
This way you let the user select which serial number to use.

This method would be much more professional that cutting/copying/pasting
stuff between the two apps or even using an input box to prompt for
entry into it.

Dec 21 '05 #2
Ok, lets say the table in the database is tData. Create a new table,
for the example we'll call it tSerial. It looks like you really only
need one column in tSerial: SerialNumber. Create e query where the
SerialNumber column in tData is linked to the SerialNumber column in
tSerial. Paste your list of serial numbers into tSerial, and open your
query.
Hope that helps

Dec 21 '05 #3
Well, it almost does--when you say "linked," ummm...well, I'm not sure
how to do that. I assume it's something I type into the criteria
field.

I'll go look it up while I wait for a response.
Also, I hate clicking around. It's simply one of my computer pet
peeves. I suppose I was looking to do it with a form because I know
how to open a query upon closing a form--I found some VBA code to do
that.

I'll look this up, too, but just in case I don't find it, can you tell
me: can I set the table to open that query every time I close the
table? Oh, and maybe the query to empty out the table every time I
close it?

Dec 21 '05 #4
Also, I tried this. It shows my records, just like I'd hoped, but I
can't edit any data in them.

Dec 21 '05 #5
To find out why Access is not letting you edit the data, start taking
apart your query piece by piece until you find which part is holding
you up.
A couple places to look are: The relationship between the tables, the
number of tables (Access will let you edit with one left join but not
two), whether or not one of the tables are linked, subqueries.
As far as automation, you can take this to the point where with a push
of a button, Access will import your data from excel, make any needed
changes and print your report. It's a little involved, but not that
hard.

Dec 27 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jon | last post by:
Hi all, I am trying to create a page that contains a number of div elements, with links on the left side of the page allowing the user to select which div to display. Some of the pages contain...
8
by: doomx | last post by:
I'm using SQL scripts to create and alter tables in my DB I want to know if it's possible to fill the description(like in the Create table UI) using these scripts. EX: CREATE TABLE(...
3
by: Susan | last post by:
AccessXP When I use the wizard to create a form, all the textboxes are created with the Enter Key Behaviour of "New Line In Field". When I create the form manually the Enter Key Behaviour is...
5
by: Brian | last post by:
Hello all.. Am working on an Air Hockey game... have an table loaded into a picture box. The borders of the table are slightly slanted. Am using hit testing lines with GDI+ to manipulate the...
5
by: Steve | last post by:
Hi, Is it possible to make hitting the enter key in an ASP textbox run the code behind an ASP button on a form? I have a search page which users tend to type in the query then just hit enter...
3
by: markaelkins | last post by:
Hi. I am trying to enter a variable in the treenodesrc of a treenode. I am basically trying to send an ID variable into sql to return different records. I've searched everywhere and cannot find the...
13
by: sugard | last post by:
Abstract Class, Inheritance, Polymorphism, File Handling, Exception Handing A program is to be devised for a university to work out whether or not, a student or a professor, is outstanding. The...
0
KalariaNitya
by: KalariaNitya | last post by:
Hello, could anybody help me? i have gridview, inside gridview i have one Update button & textbox update button update the quantity entered in textbox. i want to update the quantity on textbox on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.