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

PING: Bob Quintal

RRT
Bob,

In a previous post you had suggested this for my database:
In the Current Event for your form, change the rowsource of the
listbox to a filtered one, and requery.

sub Form_current()
dim strSQL as string
strSQL = "SELECT Street, Area from [table 1] " & _
"Where street = '" & me.street & "'"
me.listbox.recordsource = strSQL

end sub


I should of mentioned I don't use forms, I enter information directly into
tables. So I guess I could use SQL on the rowsource. What would I need to
enter? Something like this?

SELECT Street, Area from [Streets By Intersections]
WHERE Street=' & street &'

Just guessing....
RRT
Nov 12 '05 #1
4 1774
"RRT" <NO******************@miramichi.org> wrote in message news:<LO********************@ursa-nb00s0.nbnet.nb.ca>...
Bob,

In a previous post you had suggested this for my database:
In the Current Event for your form, change the rowsource of the
listbox to a filtered one, and requery.

sub Form_current()
dim strSQL as string
strSQL = "SELECT Street, Area from [table 1] " & _
"Where street = '" & me.street & "'"
me.listbox.recordsource = strSQL

end sub

I should of mentioned I don't use forms, I enter information directly into
tables. So I guess I could use SQL on the rowsource. What would I need to
enter? Something like this?

SELECT Street, Area from [Streets By Intersections]
WHERE Street=' & street &'

Just guessing....


If you don't use forms, it won't work. Create a form based on your
table and then go from there. Letting users have direct access to
your tables is asking for trouble...

RRT

Nov 12 '05 #2
Really Bob, tables are only for storing data. Much better to use forms for
input because there is then the possibility of checking and restricting your
data. Can't be done with tables.

I suspect that your table structure is not optimal

You need a table of Streets
StreetID Autonumber Key
Street Text Indexed Duplicates Not allowed???? (Unless
there are duplicate street names) Required - Yes

Then you need a table of Areas
AreaID Autonumber Key
Area Text Indexed Duplicates
allowed???? (I suspect there may be the same intersections on parallel
roads) Required - Yes
StreetID Number Long Integer Indexed Duplicates allowed,
Required - Yes
Also in the indexes create an index of AreaStreet with AreaID and StreetID
and set it to Indexed Duplicates Not allowed. This will stop you creating
the sane area of a street twice

Set up a relationship between tables Streets and Areas and enforce
referential integrity between the StreetIDs
Then a form can be created based on the Area table and combo box to select
the appropriate street

You then want a third table, and here I am hazy on what is required
Table Projects
ProjectID Autonumber Key
Project Text e.g. Sewers
ProjectNo Text e.g. 2003-01
Then Either StreetID if it applies to the whole street OR AreaID if the
project applies to just 1 area of the street Number Long Indexed
Duplicates allowed
Your final form is based on the Project table and a combo box to pick either
the street or the area
This combo box would probably have to show both street and area, because the
same intersections could apply to more than 1 street, or a street is known
to have multiple areas

If you haven't used forms you will find out how pretty things can be, and
the wizards will help you

Phil

"RRT" <NO******************@miramichi.org> wrote in message
news:LO********************@ursa-nb00s0.nbnet.nb.ca...
Bob,

In a previous post you had suggested this for my database:
In the Current Event for your form, change the rowsource of the
listbox to a filtered one, and requery.

sub Form_current()
dim strSQL as string
strSQL = "SELECT Street, Area from [table 1] " & _
"Where street = '" & me.street & "'"
me.listbox.recordsource = strSQL

end sub

I should of mentioned I don't use forms, I enter information directly

into tables. So I guess I could use SQL on the rowsource. What would I need to enter? Something like this?

SELECT Street, Area from [Streets By Intersections]
WHERE Street=' & street &'

Just guessing....
RRT

Nov 12 '05 #3
"RRT" <NO******************@miramichi.org> wrote in
news:LO********************@ursa-nb00s0.nbnet.nb.ca:
Bob,

In a previous post you had suggested this for my database:
In the Current Event for your form, change the rowsource of
the listbox to a filtered one, and requery.

sub Form_current()
dim strSQL as string
strSQL = "SELECT Street, Area from [table 1] " & _
"Where street = '" & me.street & "'"
me.listbox.recordsource = strSQL

end sub
>

I should of mentioned I don't use forms, I enter information
directly into tables. So I guess I could use SQL on the
rowsource. What would I need to enter? Something like this?


You don't use forms! I hope you won't get offended if I say "Time
to start using forms."

Well-done forms will simplify your data entry tasks, reduce chance
for errors, and make a more pleasing work environment.

Not using them is like driving to work on a chassis with no seats,
no windsield and no steering wheel.

SELECT Street, Area from [Streets By Intersections]
WHERE Street=' & street &'

Just guessing....
Well, unless you have a form you have no reasonable way of putting
the value you want into the street variable ( that's the one
between the ampersands) except by typing it in, and no way to move
the selected result back into your main table without highlighting,
cutting and pasting.

RRT


Nov 12 '05 #4
RRT
Form it is......

I just always found it faster to enter data, especially when I had alot to
enter. Everything else I've created in access for others use forms.
Thanks.

RRT

"Bob Quintal" <bq******@generation.net> wrote in message
news:2a******************************@news.teranew s.com...
"RRT" <NO******************@miramichi.org> wrote in
news:LO********************@ursa-nb00s0.nbnet.nb.ca:
Bob,

In a previous post you had suggested this for my database:
In the Current Event for your form, change the rowsource of
the listbox to a filtered one, and requery.

sub Form_current()
dim strSQL as string
strSQL = "SELECT Street, Area from [table 1] " & _
"Where street = '" & me.street & "'"
me.listbox.recordsource = strSQL

end sub
>


I should of mentioned I don't use forms, I enter information
directly into tables. So I guess I could use SQL on the
rowsource. What would I need to enter? Something like this?


You don't use forms! I hope you won't get offended if I say "Time
to start using forms."

Well-done forms will simplify your data entry tasks, reduce chance
for errors, and make a more pleasing work environment.

Not using them is like driving to work on a chassis with no seats,
no windsield and no steering wheel.

SELECT Street, Area from [Streets By Intersections]
WHERE Street=' & street &'

Just guessing....


Well, unless you have a form you have no reasonable way of putting
the value you want into the street variable ( that's the one
between the ampersands) except by typing it in, and no way to move
the selected result back into your main table without highlighting,
cutting and pasting.


RRT

Nov 12 '05 #5

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

Similar topics

3
by: Jason Rodman | last post by:
I have downloaded every example on how to create a ping utility in .Net in both VB and C#, but have been disappointed with the results. I have YET to find an example that returns consistent results...
9
by: Mantorok | last post by:
Hi all I want to ping an ipaddress/host to check for a response. Is there any easy way in C#/.Net to do this? Thanks Kev
0
by: Ed | last post by:
I've attached some VB.NET code I've hacked together (some taken from MS examples & newsgroup postings) that will perform a ping or IcmpSendEcho using the icmp.dll (see this for more info:...
0
by: scotty | last post by:
I need to do a ping scan of a subnet. I can Enum through the IPs and do this, but it takes over 5 minutes as I can only create 1 process at a time. Does anyone know how I can create multiple Ping...
21
by: Neel | last post by:
I am trying to "ping" a remote host in my C++/Redhat Linux code to check whether that host is connected or not. if (0 == system("ping -w 2 192.168.0.2)) But, in both cases...
5
by: Deepak | last post by:
I am programing a ping application which pings various centers . I used timer loop and it pings one by one. Now when i finish pinging one center it should wait for the ping_completed function to...
1
by: Krish | last post by:
All, I have an offline application that works online for some data syncronization. For data syncronization I access a webservice. I want to show whether my application is online or not by checking...
3
by: imughal | last post by:
I got the perl script which does following task. This solution reads in a line from a text file that is passed in as input parameter 1 to a Perl script. This script will then ping the machine...
6
by: Dave Marden | last post by:
I currently use this routine in vbscript to ping computers and get the status of ping to determine whether to try to backup a machine, I am trying to change it to work with vb2003.net I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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,...
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
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,...

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.