473,418 Members | 5,099 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,418 software developers and data experts.

Need help on seeing data in form

I need some help figuring something out. I'm not sure if I heading in
the correct direction.
What I'm trying to accomplish is the following. I have a table that
has id, discrip, and
2 date fields. I am populating this information from a sub from on a
main form. The Id
and date fields are tied together in the forms. I am trying to get the
descrip field to show up in my main form under a listbox. I have
created a sql query to try to accomplish this. I can have multiple
lines of information for each id. That's why I'm trying to show in
list box. The problem I am having is I cannot get it to look for
specific id of the current page I'm on in the form. It prompts me for
id. If I enter the id the list box displays correct info. I would like
for it to see what page I'm on in my form take the id from there and
fill the list box accordingly. When I change sheets it would
automatically update. I have pasted sql query below. I would really
appreciate any insight on how to make this work. Thanks ahead of time.

Dan

SELECT [reserve].[site], [reserve].[reservationid],
[reservations].[reservationsid]
FROM reserve
WHERE (([reserve].[reservationid])=([reservations].[reservationsid]));

Dec 7 '05 #1
1 1071
deercreek <da*@deercreekcg.com> wrote:
: I need some help figuring something out. I'm not sure if I heading in
: the correct direction.
: What I'm trying to accomplish is the following. I have a table that
: has id, discrip, and
: 2 date fields. I am populating this information from a sub from on a
: main form. The Id
: and date fields are tied together in the forms. I am trying to get the
: descrip field to show up in my main form under a listbox. I have
: created a sql query to try to accomplish this. I can have multiple
: lines of information for each id. That's why I'm trying to show in
: list box. The problem I am having is I cannot get it to look for
: specific id of the current page I'm on in the form. It prompts me for
: id. If I enter the id the list box displays correct info. I would like
: for it to see what page I'm on in my form take the id from there and
: fill the list box accordingly. When I change sheets it would
: automatically update. I have pasted sql query below. I would really
: appreciate any insight on how to make this work. Thanks ahead of time.
Set the rowsource property of your listbox to the main
form's id-field:

=Forms!yourformname![reservations].[reservationsid]

where yourformname is the name of your main form.
--thelma

: Dan

: SELECT [reserve].[site], [reserve].[reservationid],
: [reservations].[reservationsid]
: FROM reserve
: WHERE (([reserve].[reservationid])=([reservations].[reservationsid]));

Dec 7 '05 #2

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

Similar topics

9
by: Nathan Rose | last post by:
Here's my problem. I am reading from a text file using this: if (!file_exists($file)) { echo "Don't exist\n"; return false; } $fd = @fopen($file, 'r'); if (!is_resource($fd))
1
by: gmlear | last post by:
Yes this looks just like the post below but seeing a was a dumba$$ and didn't phrase my subject in the form of a question I wasn't gettting any hits.... So here you go. Senerio: I am using...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
7
by: Sam | last post by:
Hello All, We want our Call Service Representatives to be able to go back and view all the records in a table on a form. When closing and re-opening the form the form starts out as record 1 of 1...
4
by: Mangalaganesh Balasubramanian | last post by:
Hi, This is my requirement & i woudl arppreciate any assistance on this. I ahve a scanned form which has data entered by User. I want to have a web page which woudl display this scanned form...
2
by: Franky | last post by:
Threre is a Form containing a usercontrol In the form's Load event it references a usercontrol property, say, zz The first showdialog(formx) causes 1 usercontrol_load event 2 form_load event...
11
by: shror | last post by:
Hi every body, Please I need your help solving my php mail() function problem that the code is appearing in the view source and I dont know whats the problem where I am using another page tto test...
1
MGrowneyARSI
by: MGrowneyARSI | last post by:
I have a form with 4 tabs/pages and 5 sub forms two of the sub forms are linked to each other useing the querys but they are not linked to any other form, however both of the subforms have lookups on...
4
klarae99
by: klarae99 | last post by:
Hello, I am working on an Access 2003 Database. The tables that pertain to this issue are tblOrg, tblState, tblCity, and tblZip. I have posted the table structure with only the pertinant fields...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
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...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.