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

Data in Index form

I want to make index view of phone direcotory i.e. on a single form there are buttons from a to z.
I hav make separete queries that shows results start from A, B respectivly.

But how i can handel these queries on single form i.e. when i click A it run qery A and display corresponding records.when B.....so on

Thx
Oct 27 '06 #1
12 1969
tara99
106 100+
I want to make index view of phone direcotory i.e. on a single form there are buttons from a to z.
I hav make separete queries that shows results start from A, B respectivly.

But how i can handel these queries on single form i.e. when i click A it run qery A and display corresponding records.when B.....so on

Thx
One option is to create queries.
for query A, set your criteria for qurery A.
same for the rest of the queries
display each query in a form (A,B,C,....)

Then in the form, create buttons (A, B, C, D,etc.....)
Private Sub A_Click()

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "formA"
DoCmd.Openform stDocName, , , stLinkCriteria

End Sub

Or you can do it dynamically,

Cheers
Oct 27 '06 #2
These indexing i want to do in a single form, rather than open seprate forms for each buttons.
Oct 27 '06 #3
tara99
106 100+
These indexing i want to do in a single form, rather than open seprate forms for each buttons.
I have never done it myself and I don't have code for it but I think you can create few variable for each of your text boxes that you want to display information, and run sql statement and display those information in the text boxes for each of the button.

hope it helps
Oct 27 '06 #4
Killer42
8,435 Expert 8TB
Is the code in Access, or standalone VB?
Oct 27 '06 #5
i m using MS access, in which vb coding facility available.
Oct 27 '06 #6
PEB
1,418 Expert 1GB
Hi,

So you can change the recordset property of your form..

In your A click even procedure you can write

Me.recordset=AQuery

And so on..

:)
Oct 27 '06 #7
PEB
1,418 Expert 1GB
Pardon

Me.recordset="AQuery"

;)
Oct 27 '06 #8
Killer42
8,435 Expert 8TB
Hi,
So you can change the recordset property of your form..
In your A click even procedure you can write
Me.recordset=AQuery
And so on..
:)
Wouldn't it make more sense to use a single query, and pass the letter as a parameter? Or insert it into the query dynamically? Having 26 separate queries seems cumbersome.
Oct 28 '06 #9
PEB
1,418 Expert 1GB
Wouldn't it make more sense to use a single query, and pass the letter as a parameter? Or insert it into the query dynamically? Having 26 separate queries seems cumbersome.
Sure that it's better!

However if he has done 28 queries, why to say that his work isn't usefull?

:)
Oct 28 '06 #10
This all thing I can manage, But i need some usful functionality on from to get the result from 26 queries when click on correspond buttons. What function should i use??
Oct 29 '06 #11
NeoPa
32,556 Expert Mod 16PB
This all thing I can manage, But i need some usful functionality on from to get the result from 26 queries when click on correspond buttons. What function should i use??
??!???!???
Oct 29 '06 #12
PEB
1,418 Expert 1GB
Hey,

On click property of the respective bouton you choose event procedure...

If you visualize in subform datasheet your query type

Me![Your Subform].Form.recordset="AQuery"

Change Your Subform with the name of your subform
"AQuery" with the name of your query that invokes the names with A

And all this for the buton A the same thing for the others butons

:)
Oct 29 '06 #13

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

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
0
by: Limey | last post by:
We are working with a vendor who is trying to post some some XML data to us. They are using an ASPX script to post to a PHP page of ours. The problem is that in the PHP page, I cannot find any...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
16
by: Greg G | last post by:
I'm trying to open a popup window and then set some data, but I can't seem to make it work. I'm sure I'm missing something obvious. popwin = document.open('mypop.html', \"external\", \"width=\"...
2
by: Brian Henry | last post by:
Hi, I have a data grid that is set up like this Page items displayed = 10 EnableViewState = false (i dont want to send large amounts of data over the internet!) CustomPaging = false...
1
by: Angus Lepper | last post by:
I'm writing a stock ticker for a stock market simulation, and can load the data into the xmlreader in the first place, but can't figure out how to refresh/update the data in it. Any ideas? Code:...
15
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
15
by: tmax | last post by:
PHP Pros: I have a simple html form that submits data to a php script, which processes it, and then redisplays the same page, but with a "thank you" message in place of the html form. This is...
8
by: Radx | last post by:
Here in my web application, I have a data entry page with serval controls. Some of the controls have autopostback is set true. But the problem is when two or more people are entering data at the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.