473,656 Members | 2,819 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bad Code Needs Help

I have a form.

When a person selects a publication from a listbox, this snippet of
code is supposed to look up authors that correspond to that publication
and populate the Author List Box, but it doesn't work. I have been
hacking away at it for a while to no avail. Can anyone spot the bug(s)?

The RowSource property of Authors gets set to the following by this
code, if that helps you help me:

SELECT Author FROM Authors WHERE [Publication 1]=127 Or [Publication
2]=127 Or [Publication 3]=127;

Private Sub Publication_Aft erUpdate()

Dim dbsCurrent As Database
Dim rstPublications As Recordset

Dim qdfExists As QueryDef

Dim intPublication As Integer
Dim intPubMasterID As Integer

Set dbsCurrent = OpenDatabase("c :\documents and
settings\admini strator\desktop \PR.mdb")

intPublication = [Forms]![new clips]!Publication

Set qdfExists = dbsCurrent.Crea teQueryDef("")
With qdfExists
.SQL = "SELECT * FROM Publications " & _
"WHERE PublicationID = " & intPublication
Set rstPublications = .OpenRecordset( )
End With

With rstPublications
intPubMasterID = !PubMasterID
End With
rstPublications .Close

Set qdfExists = dbsCurrent.Crea teQueryDef("")
With qdfExists
.SQL = "SELECT Author FROM Authors " & _
"WHERE [Publication 1] = " & intPubMasterID & _
"OR [Publication 2] = " & intPubMasterID & _
"OR [Publication 3] = " & intPubMasterID
End With

Me.Author.RowSo urce = qdfExists.SQL
Me.Author.Reque ry
dbsCurrent.Clos e
End Sub
Thanks!

Andrew

Jul 4 '06 #1
8 1464
An addendum to this...

When I start typing in the Author list box the name I expect, it
appears.

How do I make it visible after I requery?

Thanks,
Andrew
darnnews wrote:
I have a form.

When a person selects a publication from a listbox, this snippet of
code is supposed to look up authors that correspond to that publication
and populate the Author List Box, but it doesn't work. I have been
hacking away at it for a while to no avail. Can anyone spot the bug(s)?

The RowSource property of Authors gets set to the following by this
code, if that helps you help me:

SELECT Author FROM Authors WHERE [Publication 1]=127 Or [Publication
2]=127 Or [Publication 3]=127;

Private Sub Publication_Aft erUpdate()

Dim dbsCurrent As Database
Dim rstPublications As Recordset

Dim qdfExists As QueryDef

Dim intPublication As Integer
Dim intPubMasterID As Integer

Set dbsCurrent = OpenDatabase("c :\documents and
settings\admini strator\desktop \PR.mdb")

intPublication = [Forms]![new clips]!Publication

Set qdfExists = dbsCurrent.Crea teQueryDef("")
With qdfExists
.SQL = "SELECT * FROM Publications " & _
"WHERE PublicationID = " & intPublication
Set rstPublications = .OpenRecordset( )
End With

With rstPublications
intPubMasterID = !PubMasterID
End With
rstPublications .Close

Set qdfExists = dbsCurrent.Crea teQueryDef("")
With qdfExists
.SQL = "SELECT Author FROM Authors " & _
"WHERE [Publication 1] = " & intPubMasterID & _
"OR [Publication 2] = " & intPubMasterID & _
"OR [Publication 3] = " & intPubMasterID
End With

Me.Author.RowSo urce = qdfExists.SQL
Me.Author.Reque ry
dbsCurrent.Clos e
End Sub
Thanks!

Andrew
Jul 4 '06 #2
Addendum 2: I fixed it.


darnnews wrote:
An addendum to this...

When I start typing in the Author list box the name I expect, it
appears.

How do I make it visible after I requery?

Thanks,
Andrew
darnnews wrote:
I have a form.

When a person selects a publication from a listbox, this snippet of
code is supposed to look up authors that correspond to that publication
and populate the Author List Box, but it doesn't work. I have been
hacking away at it for a while to no avail. Can anyone spot the bug(s)?

The RowSource property of Authors gets set to the following by this
code, if that helps you help me:

SELECT Author FROM Authors WHERE [Publication 1]=127 Or [Publication
2]=127 Or [Publication 3]=127;

Private Sub Publication_Aft erUpdate()

Dim dbsCurrent As Database
Dim rstPublications As Recordset

Dim qdfExists As QueryDef

Dim intPublication As Integer
Dim intPubMasterID As Integer

Set dbsCurrent = OpenDatabase("c :\documents and
settings\admini strator\desktop \PR.mdb")

intPublication = [Forms]![new clips]!Publication

Set qdfExists = dbsCurrent.Crea teQueryDef("")
With qdfExists
.SQL = "SELECT * FROM Publications " & _
"WHERE PublicationID = " & intPublication
Set rstPublications = .OpenRecordset( )
End With

With rstPublications
intPubMasterID = !PubMasterID
End With
rstPublications .Close

Set qdfExists = dbsCurrent.Crea teQueryDef("")
With qdfExists
.SQL = "SELECT Author FROM Authors " & _
"WHERE [Publication 1] = " & intPubMasterID & _
"OR [Publication 2] = " & intPubMasterID & _
"OR [Publication 3] = " & intPubMasterID
End With

Me.Author.RowSo urce = qdfExists.SQL
Me.Author.Reque ry
dbsCurrent.Clos e
End Sub
Thanks!

Andrew
Jul 4 '06 #3

"darnnews" <an************ @gmail.comwrote in message
news:11******** **************@ l70g2000cwa.goo glegroups.com.. .
Addendum 2: I fixed it.
Want to share _how_ so that others can learn, too?

BTW, with Publication1, Publication2, and Publication3 all being Fields in
the Authors Table, it would appear your Table Design is not Normalized. I
suggest you consider moving Publication information to a separate Table,
with Foreign Keys pointing back to the Record in the Authors Table. If you
can have multiple Publications per Author and multiple Authors per
Publication, then you likely need a junction Table with Foreign Keys to both
Authors and Publications to handle the many-to-many relationship.

The un-normalized nature of the Table is what led to the "clumsy" WHERE
clause in the Query, checking for the same value in three fields.

Larry Linson
Microsoft Access MVP
Jul 5 '06 #4
No doubt you are correct... I will think about it and also try and
learn more. If anyone would like to see and/or critique my entire DB,
please drop me a line and I will happily oblige
(an************ @gmail.com)

Below the following table list is my undocumented code for my "Add New
Press Clippings" form.

Related to this form, I have the following tables in the DB:

AUTHORS Table:
AuthorID Author First Name Middle Initial Last Name Email Phone
Number Publication 1 Publication 2 Publication 3 Notes

CLIENTS Table (This is non-relational, used purely for driving a menu.)
ClientID Client

CLIPS Table
ClipID Client AuthorID PublicationID Headline Article Text Publication
Date Description Slant Notes Clip Date URL Value Measurement

MEDIUMS Table (This is non-relational, used purely for driving a menu.
I may use it to drive some value calculations later.)
MediumID Medium Rule

PUBMASTER Table (Whenever a user enters new publications, the DB makes
an entry in this table, and then it makes multiple entries in
PUBLICATIONS. The user can enter up to five children, one for each
medium: web, print, enewsletter, TV, radio)
PubMasterID Publication URL

PUBLICATIONS Table
PublicationID Publication PubMasterID Medium ValuePerInch Circulation

Option Compare Database

Private Sub Add_New_Publica tion_Click()

On Error GoTo Err_Add_New_Pub lication_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "New Publications"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Add_New_Pu blication_Click :
Exit Sub

Err_Add_New_Pub lication_Click:
MsgBox Err.Description
Resume Exit_Add_New_Pu blication_Click

End Sub
Private Sub Clear_Click()

Me.Client = Null
Me.Medium = Null
Me.Publication = Null
Me.Author = Null
Me.Notes = Null
Me.Slant = Null
Me.[Publication Date] = Null
Me.URL = "http://"
Me.Headline = Null
Me.[Article Text] = Null
Me.Description = Null
Me.Measurement = Null

End Sub

Private Sub NoURL_AfterUpda te()

If NoURL Then
Me.URL = "No electronic link is available."
Else
Me.URL = "http://"
End If
End Sub

Public Sub Publication_Aft erUpdate()

Dim dbsCurrent As Database
Dim rstPublications As Recordset

Dim qdfExists As QueryDef

Dim intPublication As Integer
Dim intPubMasterID As Integer

Set dbsCurrent = OpenDatabase("c :\documents and
settings\admini strator\desktop \PR.mdb")

intPublication = [Forms]![new clips]!Publication

Set qdfExists = dbsCurrent.Crea teQueryDef("")
With qdfExists
.SQL = "SELECT * FROM Publications " & _
"WHERE PublicationID = " & intPublication
Set rstPublications = .OpenRecordset( )
End With

With rstPublications
intPubMasterID = !PubMasterID
End With
rstPublications .Close

Set qdfExists = dbsCurrent.Crea teQueryDef("")
With qdfExists
.SQL = "SELECT Author, AuthorID FROM Authors " & _
" WHERE [Publication 1] = " & intPubMasterID & _
" OR [Publication 2] = " & intPubMasterID & _
" OR [Publication 3] = " & intPubMasterID & _
" ORDER BY Author"
End With

Me.Author.RowSo urce = qdfExists.SQL
Me.Author.Reque ry
Me.Author = Me.Author.ItemD ata(0)
dbsCurrent.Clos e
End Sub

Private Sub Save_Click()

Dim intCheck As Integer
intCheck = 0
If IsNull(Me.Clien t) Then
Me.Client.BackC olor = 8421631
intCheck = intCheck + 1
Else
Me.Client.BackC olor = 16777215
End If

If IsNull(Me.Mediu m) Then
Me.Medium.BackC olor = 8421631
intCheck = intCheck + 1
Else
Me.Medium.BackC olor = 16777215
End If

If IsNull(Me.Publi cation) Then
Me.Publication. BackColor = 8421631
intCheck = intCheck + 1
Else
Me.Publication. BackColor = 16777215
End If

If IsNull(Me.Autho r) Then
Me.Author.BackC olor = 8421631
intCheck = intCheck + 1
Else
Me.Author.BackC olor = 16777215
End If

If IsNull(Me.Publi cation_Date) Then
Me.Publication_ Date.BackColor = 8421631
intCheck = intCheck + 1
Else
Me.Publication_ Date.BackColor = 16777215
End If

If IsNull(Me.URL) Or Me.URL = "http://" Then
Me.URL.BackColo r = 8421631
intCheck = intCheck + 1
Else
Me.URL.BackColo r = 16777215
End If

If IsNull(Me.Headl ine) Then
Me.Headline.Bac kColor = 8421631
intCheck = intCheck + 1
Else
Me.Headline.Bac kColor = 16777215
End If

If IsNull(Me.Artic le_Text) Then
Me.Article_Text .BackColor = 8421631
intCheck = intCheck + 1
Else
Me.Article_Text .BackColor = 16777215
End If

If IsNull(Me.Descr iption) Then
Me.Description. BackColor = 8421631
intCheck = intCheck + 1
Else
Me.Description. BackColor = 16777215
End If

If IsNull(Me.Measu rement) Then
Me.Measurement. BackColor = 8421631
intCheck = intCheck + 1
Else
Me.Measurement. BackColor = 16777215
End If

If intCheck 0 Then
MsgBox ("Please entered the all required fields. The ones you
are missing are highlighted in red.")

Else

Dim dbsPR As Database
Dim rstClips As Recordset

Set dbsPR = OpenDatabase("c :\documents and
settings\admini strator\desktop \PR.mdb")
Set rstClips = dbsPR.OpenRecor dset("Clips")

With rstClips
.AddNew
!Client = [Forms]![new clips]![Client]
![Clip Date] = [Forms]![new clips]![Clip Date]
!PublicationID = [Forms]![new clips]![Publication]
!AuthorID = [Forms]![new clips]![Author]
!Notes = [Forms]![new clips]!Notes

If Me.Slant = "3" Then
!Slant = "Positive"
Else
If Me.Slant = "2" Then
!Slant = "Neutral"
Else
If Me.Slant = "1" Then
!Slant = "Negative"
End If
End If
End If

![Publication Date] = [Forms]![new clips]![Publication
Date]
!URL = [Forms]![new clips]![url]
!Headline = [Forms]![new clips]![Headline]
![Article Text] = [Forms]![new clips]![Article Text]
!Description = [Forms]![new clips]![Description]
!Measurement = [Forms]![new clips]![Measurement]

Dim rstPublications As Recordset
Dim LngPricePerInch As Long
Dim intPubID As Integer
Set rstPublications = dbsPR.OpenRecor dset("Publicati ons",
dbReadOnly)
intPubID = [Forms]![new clips]![Publication]

With rstPublications
.FindFirst ("Publicatio nID = " & intPubID)
LngPricePerInch = !ValuePerInch
End With
!Value = LngPricePerInch * [Forms]![new
clips]![Measurement]
.Update
End With
dbsPR.Close
End If
End Sub
Private Sub Medium_AfterUpd ate()

Me.Publication = Null
Me.Publication. Requery
Me.Publication = Me.Publication. ItemData(0)

Me.Description = Null
Me.Description. Requery
Me.Measurement = Null

Me.Author.RowSo urce = ""
If Me.Publication <"" Then
Me.Author = "staff writer"
Else
Me.Author = Null
End If

Select Case Me.Medium
Case "Web site"
Me.Description = "The online article "
Me.Measurement_ Label = "Square Inches"
Case "e-Newsletter"
Me.Description = "The e-newsletter article "
Me.Measurement_ Label = "Square Inches"
Case "Print"
Me.Description = "The print article "
Me.Measurement_ Label = "Square Inches"
Case "Radio"
Me.Description = "The radio program "
Me.Measurement_ Label = "Seconds"
Case "Television "
Me.Description = "The television program "
Me.Controls("Me asurement_Label ") = "Seconds"
End Select
Publication_Aft erUpdate

End Sub
Private Sub Exit_Click()
On Error GoTo Err_Exit_Click
DoCmd.Close
DoCmd.Quit acQuitPrompt
Exit_Exit_Click :
Exit Sub

Err_Exit_Click:
MsgBox Err.Description
Resume Exit_Exit_Click

End Sub

Private Sub Add_New_Author_ Click()
On Error GoTo Err_Add_New_Aut hor_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "New Authors"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Add_New_Au thor_Click:
Exit Sub

Err_Add_New_Aut hor_Click:
MsgBox Err.Description
Resume Exit_Add_New_Au thor_Click

End Sub


Larry Linson wrote:
"darnnews" <an************ @gmail.comwrote in message
news:11******** **************@ l70g2000cwa.goo glegroups.com.. .
Addendum 2: I fixed it.

Want to share _how_ so that others can learn, too?

BTW, with Publication1, Publication2, and Publication3 all being Fields in
the Authors Table, it would appear your Table Design is not Normalized. I
suggest you consider moving Publication information to a separate Table,
with Foreign Keys pointing back to the Record in the Authors Table. If you
can have multiple Publications per Author and multiple Authors per
Publication, then you likely need a junction Table with Foreign Keys to both
Authors and Publications to handle the many-to-many relationship.

The un-normalized nature of the Table is what led to the "clumsy" WHERE
clause in the Query, checking for the same value in three fields

Larry Linson
Microsoft Access MVP
Jul 5 '06 #5

darnnews wrote:
No doubt you are correct... I will think about it and also try and
learn more. If anyone would like to see and/or critique my entire DB,
please drop me a line and I will happily oblige
(an************ @gmail.com)

Below the following table list is my undocumented code for my "Add New
Press Clippings" form.

Related to this form, I have the following tables in the DB:

AUTHORS Table:
AuthorID Author First Name Middle Initial Last Name Email Phone
Number Publication 1 Publication 2 Publication 3 Notes

CLIENTS Table (This is non-relational, used purely for driving a menu.)
ClientID Client

CLIPS Table
ClipID Client AuthorID PublicationID Headline Article Text Publication
Date Description Slant Notes Clip Date URL Value Measurement

MEDIUMS Table (This is non-relational, used purely for driving a menu.
I may use it to drive some value calculations later.)
MediumID Medium Rule

PUBMASTER Table (Whenever a user enters new publications, the DB makes
an entry in this table, and then it makes multiple entries in
PUBLICATIONS. The user can enter up to five children, one for each
medium: web, print, enewsletter, TV, radio)
PubMasterID Publication URL

PUBLICATIONS Table
PublicationID Publication PubMasterID Medium ValuePerInch Circulation
First, just explain how the real-world entities are related. Not how
they're related in terms of tables, but in real life. (What in the
real world does the PubMaster table relate to? What purpose does it
have?)

Can you explain in plain English how the entities (table names) are
related? One way of going about this is to play fill in the blanks...

Each <nouncan have <1 or many<other noun>

for example:
Each <authorcan write MANY <articles>.

then flip the nouns around.

EACH <articlecan be written by ONE/MANY <authors>

(You use this to determine if you have a many-to-many relationship.)
do that for each pair of "things" in your database that are related in
the real world.
Some will not be directly related, e.g. Author and say Publisher.
They're related through Book or something like that.

Author <writesbook <which is published byPublisher.

If you do this, it's easier to draw out how the DB should look. once
you have the plain english version, find the verbs, then the nouns and
connect the dots. literally draw the pieces into your relationship
diagram. IMO, until you have that down, the rest is a waste of time,
because you can't prove that you can get the answers you're looking for
from the structure you have.

Just my two cents.

Jul 5 '06 #6
I was just taking a few minutes to respond to Larry's question. I ahve
neither teh time nor the inclination to explain my DB in detail. And I
don't knwo what is a waste of time. The database works well for what I
want it to do.

As I said, anyone who's interested in how it works can email me for the
file.

Regards,
Andrew

pi********@hotm ail.com wrote:
darnnews wrote:
No doubt you are correct... I will think about it and also try and
learn more. If anyone would like to see and/or critique my entire DB,
please drop me a line and I will happily oblige
(an************ @gmail.com)

Below the following table list is my undocumented code for my "Add New
Press Clippings" form.

Related to this form, I have the following tables in the DB:

AUTHORS Table:
AuthorID Author First Name Middle Initial Last Name Email Phone
Number Publication 1 Publication 2 Publication 3 Notes

CLIENTS Table (This is non-relational, used purely for driving a menu.)
ClientID Client

CLIPS Table
ClipID Client AuthorID PublicationID Headline Article Text Publication
Date Description Slant Notes Clip Date URL Value Measurement

MEDIUMS Table (This is non-relational, used purely for driving a menu.
I may use it to drive some value calculations later.)
MediumID Medium Rule

PUBMASTER Table (Whenever a user enters new publications, the DB makes
an entry in this table, and then it makes multiple entries in
PUBLICATIONS. The user can enter up to five children, one for each
medium: web, print, enewsletter, TV, radio)
PubMasterID Publication URL

PUBLICATIONS Table
PublicationID Publication PubMasterID Medium ValuePerInch Circulation
First, just explain how the real-world entities are related. Not how
they're related in terms of tables, but in real life. (What in the
real world does the PubMaster table relate to? What purpose does it
have?)

Can you explain in plain English how the entities (table names) are
related? One way of going about this is to play fill in the blanks...

Each <nouncan have <1 or many<other noun>

for example:
Each <authorcan write MANY <articles>.

then flip the nouns around.

EACH <articlecan be written by ONE/MANY <authors>

(You use this to determine if you have a many-to-many relationship.)
do that for each pair of "things" in your database that are related in
the real world.
Some will not be directly related, e.g. Author and say Publisher.
They're related through Book or something like that.

Author <writesbook <which is published byPublisher.

If you do this, it's easier to draw out how the DB should look. once
you have the plain english version, find the verbs, then the nouns and
connect the dots. literally draw the pieces into your relationship
diagram. IMO, until you have that down, the rest is a waste of time,
because you can't prove that you can get the answers you're looking for
from the structure you have.

Just my two cents.
Jul 5 '06 #7
"darnnews" wrote
I was just taking a few minutes to respond
to Larry's question. . . .
That's what I thought you were doing.
I ahve neither teh time
nor the inclination to explain my DB in detail.
And I don't knwo what is a waste of time.
The database works well for what I
want it to do.
I didn't try to analyze in detail what you posted, but wondered why you
needed a Clear function, unless it was just to give the user a quick way to
'start over' or unless the Form was unbound.

A database does not _have_ to be normalized to be useful*, but it does make
life easier when you have to do additional querying later.

* And, it's a good thing, considering how many
years after PCs were introduced that we only
had "flat file" databases!

Larry Linson
Microsoft Access MVP


Jul 5 '06 #8
You are correct... the Clear function is just to give the user a way to
clear all the fields in the form.

Your thoughts on normalizing my authors table made me realize that I
shouldn't even have a "Publicatio n 2" or "Publicatio n 3" since the
logic behind my forms makes authors unique to each publication, and
there is no reason why I need to assign Authors to multiple
publications, so I'm just deleting those fields and editing my code and
a form.

Despite some bugs I know about, I'm happy to say this thing went over
very well with the PR folks at my firm today, and promises to make all
of our lives a lot easier in the near future.

A couple more touches and I can forget about coding for another five
years or so and get back to writing.

The biggest issue I have left is creating RTF reports. I implemented
Lebans' solution to convert reports, until I realized it produced
snapshots.

Then I implemented some code to create an HTML document, and used a DLL
I found to convert the HTML to RTF (DLL courtesy of Max Sautin). But
then I realized that I would need to purchase the complete DLL to
produce large enough documents (30000 symbol limit on freeware).

So now, I just produce HTML documents and let my users copy and paste
as needed, for now.

If anyone has a library to write RTF on the fly, or to convert HTML to
RTF, hook a brother up. I may just purchase Max Sautin's DLL, if the
powers that be want to fork over $160. But I'm not convinced yet.

Cheers,
Andrew

Larry Linson wrote:
"darnnews" wrote
I was just taking a few minutes to respond
to Larry's question. . . .

That's what I thought you were doing.
I ahve neither teh time
nor the inclination to explain my DB in detail.
And I don't knwo what is a waste of time.
The database works well for what I
want it to do.

I didn't try to analyze in detail what you posted, but wondered why you
needed a Clear function, unless it was just to give the user a quick way to
'start over' or unless the Form was unbound.

A database does not _have_ to be normalized to be useful*, but it does make
life easier when you have to do additional querying later.

* And, it's a good thing, considering how many
years after PCs were introduced that we only
had "flat file" databases!

Larry Linson
Microsoft Access MVP
Jul 5 '06 #9

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

Similar topics

5
3123
by: Darren Grant | last post by:
Hi there, I've attempted to implement an Angle class. An Angle is a subset of an integer, where the range is [0,360). All other operations should be permitted. The code works, I think... except (for example) a = b + 10; needs to be a = b + (Angle) 10; Could some kind soul comment on my code and show me how it could be
15
6057
by: Dan M | last post by:
Can anyone help me with this code? This is the section and it comes up with a warning C4518: 'int' : storage-class or type specifier(s) unexpected here; ignored on line 3 int replace (char *string) int i= 0; int total= 0;
65
12567
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second method was a piece of C code which turned out to be incorrect and incomplete but by modifieing it would still be usuable. The first method was this piece of text:
4
1247
by: ITnerd | last post by:
In the interest of code re-use, I would like to place some code in a utility class to be used by other classes. The problem is that this code requires the following snippet: for(i=0; i < tbl.Rows.Count; i++) { myDataRow = tbl.Rows; company.someNestedClass sc = new company.someNestedClass(); for(j=0; j < tbl.Columns.Count; j++) {
88
8037
by: Peter Olcott | last post by:
Cab you write code directly in the Common Intermediate language? I need to optimize a critical real-time function.
15
4596
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
16
2793
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and efficient navigating within Visual Studio 2005. Let's say your project (or solution) has dozens of forms and hundreds or even thousands of routines. Two Questions: 1) BUILT-IN to Visual Studio 2005. What ideas do you have to quickly
5
4090
by: rdemyan via AccessMonster.com | last post by:
I have a need to add another field to all of my tables (over 150). Not data, but an actual field. Can I code this somehow. So the code presumabley would loop through all the tables, open each table in design mode and then add the new field and set its properties. Thanks. --
1
1256
Chrisjc
by: Chrisjc | last post by:
I am hoping someone can help me out here. I am trying to make one drop down box pull from a database the DB name is “dealerlocater” the column it needs to pull in this drop down is called “state” Once it loads all the states in the drop down box it then needs to be able to do the following. Once a user selects a state it will load all information listed in the ROWS of the state column I.E. ++++++++++++++++ + Select Your State + Pulls...
11
1293
by: Daniel Norden | last post by:
Hello. Can you give me some feedback on my code layout? I have everything organized in an object, "NRL", that's used as a namespace, and there are other subobjects/modules below that, for example "dialog" or "ajax". I'm interested in general comments, and I have some specific questions, but first the (sample) code: var NRL = {};
0
8382
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...
1
8498
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
8600
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
7311
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
6162
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
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
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.