473,789 Members | 2,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1090
deercreek <da*@deercreekc g.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!yourform name![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
2125
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
1428
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 MSXML 4.0 , ASP & ADO I am grabbing numerous RSS News Feeds and trying to parse the data and
19
4109
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 the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
7
2472
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 even though there are records already entered into the table via the form. Is there anyway to have the form start out after the last record in the table and allow the CSR to go back and view what has already been entered into the table? For...
4
1268
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 as a top part (a frame) and the second frame (bottom part) woudl be a HTML Form.
2
2948
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 which causes zz as expected the second showdialog(formx) causes 1 form_load event which causes zz as expected
11
1794
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 the php and its executed very nice The page have php code viewed : http://beachtoursegypt.com/booking-form.htm where after submitting the form the data are sent to the confirmation age where the php script lies there and its not executed
1
1167
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 them bassed on the same querys as the forms the lookups are seeing the proper data and so are the querys however the forms do not see the data they are both stuck on new records I have seen alot of wierd stuff working with subforms and tabs but...
4
3497
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 below. tblOrg OrgID, AutoNumber, PK ZipID, Number, FK tblState StateID, AutoNumber, PK
0
9665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10139
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6768
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.