Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,788| Members 17,820, Newest waheguruhelpme| Online 226
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Sikh Philosophy Network » Sikh Philosophy Network » Current Affairs » Information Technology » Help me figure out what this db is doing in exchange for something

Help me figure out what this db is doing in exchange for something

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Figure It Out For Yourself singhbj Inspirational Stories 1 17-Sep-2008 21:29 PM
exchange queries in dinamic SQL senteces yaniv d Information Technology 0 28-Jul-2006 08:16 AM
Can't figure how to do a query Jones Barton Information Technology 5 28-Jul-2006 08:01 AM


Tags
help, figure, doing, exchange
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:20 AM
Dtown Dawg's Avatar Dtown Dawg
Guest
 
Posts: n/a
   
   
Help me figure out what this db is doing in exchange for something

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I have a large complex database, that I know nothing about, and I need to
know what it is doing? Where it is getting or trying to get its information,
and stuff like that.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11354-figure-out-what-db-doing-exchange.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354

There shouldn't be any need to design, create, or write any code, tables,
forms, etc...

I just need to have you look at the database, and answer my questions like
something of this nature.

Where is table "XYZ" getting or trying to get its information?

Please Help

*








 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:20 AM
KARL DEWEY's Avatar KARL DEWEY
Guest
 
Posts: n/a
   
   
RE: Help me figure out what this db is doing in exchange for something

Open the reports, forms, and queries in design view.

Right click and select properties (at the bottom of list).

Look for the source property and that will tell you where it gets the data.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354



"Dtown Dawg" wrote:

> I have a large complex database, that I know nothing about, and I need to
> know what it is doing? Where it is getting or trying to get its information,
> and stuff like that.
>
> There shouldn't be any need to design, create, or write any code, tables,
> forms, etc...
>
> I just need to have you look at the database, and answer my questions like
> something of this nature.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354
>
> Where is table "XYZ" getting or trying to get its information?
>
> Please Help

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:20 AM
John Vinson's Avatar John Vinson
Guest
 
Posts: n/a
   
   
Re: Help me figure out what this db is doing in exchange for something

On Tue, 13 Jun 2006 1202 -0700, Dtown Dawg
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354
wrote:

>Where is table "XYZ" getting or trying to get its information?
>


As phrased, the question's only answer is "from table XYZ".

A table is a static object; it doesn't "get" information from
anywhere, other objects (forms, reports, queries) get information from
it!

What "something" are you offering in exchange? Analyzing the structure
of a database can be pretty easy or an absolute nightmare, depending
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354
on how well it was designed and commented; I'd be reluctant to offer
without some more information!

John W. Vinson[MVP]
Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:20 AM
Dtown Dawg's Avatar Dtown Dawg
Guest
 
Posts: n/a
   
   
RE: Help me figure out what this db is doing in exchange for somet

Thank you, your answer did help, and will continue to help me. However my
biggest problem is understading the modules. For example here is an "Event
Procdure" that I'm not sure what it is doing. I plan in the next day or two
to go and get a book on Visual Basic to start studying so that I can
understand what it is something like this event procedure is trying to do?

Option Compare Database
Option Explicit

Private Sub CmdExit_Click()

On Error GoTo Err_CmdExit_Click

DoCmd.CLOSE

Exit_CmdExit_Click:
Exit Sub

Err_CmdExit_Click:
MsgBox Err.DESCRIPTION
Resume Exit_CmdExit_Click

End Sub

Private Sub cmdUpdate_Click()

Dim bSelected As Boolean

'Initialize
bSelected = False

'Delete US and INV AFEs (excluding CFOL)
DoCmd.SetWarnings False
DoCmd.OpenQuery "qDelete_NONCFOL_AFES"
DoCmd.SetWarnings True

'Check for a Source selection
If cboSource = "UNKNOWN" Then
MsgBox "Select a Source - it can not be left as UNKNOWN!",
vbCritical, "Source Missing"
Exit Sub
End If

'Check for a Business Unit selection
If IsNull(cboBusinessUnit) Then
MsgBox "Select a Business Unit!", vbCritical, "Business Unit Missing"
Exit Sub
End If

'Check for a Year
If IsNull(cboYear) Then
MsgBox "Select a Year!", vbCritical, "Year Missing"
Exit Sub
End If

Dim lngFlags As Long
Dim gfni As adh_accOfficeGetFileNameInfo
Dim sFileName As String

On Error GoTo HandleErrors

'Initialize
sFileName = IIf(IsNull(Me!txtResults), "", Me!txtResults)

With gfni
.lngFlags = lngFlags
' Make sure not to pass in Null values. adhOfficeGetFile
' doesn't like that, and often GPFs.
.strFilter = "MS Excel (*.xls)|All Files (*.*)"
.lngFilterIndex = 0
.strFile = "CAPEX REPORT.xls"
.strDlgTitle = "Open Accounting MS Excel"
.strOpenTitle = "Open"
.strInitialDir = ""
End With

'Mode = 0 is to OPEN, (versus 1 = SAVE)
If adhOfficeGetFileName(gfni, 0) = adhcAccErrSuccess Then

Me!txtResults = Trim(gfni.strFile)

'Get the AFE data
bOK = ImportBusinessUnitCapex(txtResults, cboSource,
cboBusinessUnit, cboYear)

End If

DoCmd.OpenQuery "qDELETE_0_AFE_RECORDS"

If bOK Then
MsgBox "Import successful!", vbExclamation, "IMPORT SUCCESSFUL"
Else
MsgBox "Import unsuccessful!", vbCritical, "IMPORT UNSUCCESSFUL"
End If

ExitHere:
Exit Sub

HandleErrors:
MsgBox "Error: " & Err.DESCRIPTION & " (" & Err.Number & ")"
Resume ExitHere

Exit Sub

End Sub

Private Function ImportBusinessUnitCapex(sFileName As String, sSource As
String, sBusinessUnit As String, sYear As String) As Boolean

Dim sSQL As String, sWhere As String
Dim bWhere As Boolean
Dim sTable(11) As String
Dim J As Byte

On Error GoTo Err_ImportBusinessUnitCapex

'Initialize
sTable(9) = "AFE_DOLLARS"
sTable(10) = "AFE_DOLLARS_OTHER"
sTable(11) = "CURRENT_AFE_LIST"

'Build the Where clause
sWhere = ""
bWhere = False
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354

'Source
If sSource <> "**ALL**" Then
sWhere = " WHERE [SOURCE] = '" & sSource & "'"
bWhere = True
End If

'Business Unit
If sBusinessUnit <> "**ALL**" Then
If bWhere Then
sWhere = sWhere & " AND [REGION] = '" & sBusinessUnit & "'"
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354
Else
sWhere = " WHERE [REGION] = '" & sBusinessUnit & "'"
bWhere = True
End If
End If

'Project Year
If sYear <> "**ALL**" Then
If bWhere Then
sWhere = sWhere & " AND [PROJECT_YEAR] = " & sYear
Else
sWhere = " WHERE [PROJECT_YEAR] = " & sYear
bWhere = True
End If
End If

'Add the ALLOW_DELETE part
'goofy 2002.08.02 sWhere = sWhere & IIf(InStr(sWhere, "WHERE") > 0, " AND
", " WHERE ") & " [ALLOW_DELETE] = Yes;"

'Delete old AFE related records and import new ones
'=============
DoCmd.SetWarnings False

'Get the AFE data
bOK = GetCurrentAFEList(Me!txtResults, "AFE_DOLLARS",
"IRR_AFE_DOLLARS", sWhere)

DoCmd.SetWarnings True

'Modify certain AFE names with Business Unit names as suffixes
Modify_AFE_Suffixes

'OK
ImportBusinessUnitCapex = True

Exit Function

Err_ImportBusinessUnitCapex:
MsgBox "Error: " & Err.DESCRIPTION & " (" & Err.Number & ")"
ImportBusinessUnitCapex = False
Resume Next

End Function




"KARL DEWEY" wrote:

> Open the reports, forms, and queries in design view.
>
> Right click and select properties (at the bottom of list).
>
> Look for the source property and that will tell you where it gets the data.
>
>
>
> "Dtown Dawg" wrote:
>
> > I have a large complex database, that I know nothing about, and I need to
> > know what it is doing? Where it is getting or trying to get its information,
> > and stuff like that.
> >
> > There shouldn't be any need to design, create, or write any code, tables,
> > forms, etc...
> >
> > I just need to have you look at the database, and answer my questions like
> > something of this nature.
> >
> > Where is table "XYZ" getting or trying to get its information?
> >
> > Please Help

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:20 AM
Dtown Dawg's Avatar Dtown Dawg
Guest
 
Posts: n/a
   
   
Re: Help me figure out what this db is doing in exchange for somet

  Donate Today!  
I'm sorry, I should have been more clear. I'm having a hard time
understanding the "Event Procedures" and what it is they are trying to do,
and where they are trying to grab information from. I'm going to try and buy
a book on Visual Basic in the next day or two to try and figure it out. For
example, Here is just one "Event Procedure that I'm trying to figure out"
As far as exchange, I'm not sure. Cash, Brand New Dell 16 Port Hub, Brand
new Ethernet cards, baseball, football, basketball cards. I don't know, I'm
just doing this on my own, just trying to learn it and become more familiar
with this stuff.

Option Compare Database
Option Explicit

Private Sub CmdExit_Click()

On Error GoTo Err_CmdExit_Click

DoCmd.CLOSE

Exit_CmdExit_Click:
Exit Sub

Err_CmdExit_Click:
MsgBox Err.DESCRIPTION
Resume Exit_CmdExit_Click

End Sub

Private Sub cmdUpdate_Click()

Dim bSelected As Boolean

'Initialize
bSelected = False

'Delete US and INV AFEs (excluding CFOL)
DoCmd.SetWarnings False
DoCmd.OpenQuery "qDelete_NONCFOL_AFES"
DoCmd.SetWarnings True

'Check for a Source selection
If cboSource = "UNKNOWN" Then
MsgBox "Select a Source - it can not be left as UNKNOWN!",
vbCritical, "Source Missing"
Exit Sub
End If

'Check for a Business Unit selection
If IsNull(cboBusinessUnit) Then
MsgBox "Select a Business Unit!", vbCritical, "Business Unit Missing"
Exit Sub
End If

'Check for a Year
If IsNull(cboYear) Then
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354
MsgBox "Select a Year!", vbCritical, "Year Missing"
Exit Sub
End If

Dim lngFlags As Long
Dim gfni As adh_accOfficeGetFileNameInfo
Dim sFileName As String

On Error GoTo HandleErrors

'Initialize
sFileName = IIf(IsNull(Me!txtResults), "", Me!txtResults)

With gfni
.lngFlags = lngFlags
' Make sure not to pass in Null values. adhOfficeGetFile
' doesn't like that, and often GPFs.
.strFilter = "MS Excel (*.xls)|All Files (*.*)"
.lngFilterIndex = 0
.strFile = "CAPEX REPORT.xls"
.strDlgTitle = "Open Accounting MS Excel"
.strOpenTitle = "Open"
.strInitialDir = ""
End With

'Mode = 0 is to OPEN, (versus 1 = SAVE)
If adhOfficeGetFileName(gfni, 0) = adhcAccErrSuccess Then

Me!txtResults = Trim(gfni.strFile)

'Get the AFE data
bOK = ImportBusinessUnitCapex(txtResults, cboSource,
cboBusinessUnit, cboYear)

End If

DoCmd.OpenQuery "qDELETE_0_AFE_RECORDS"

If bOK Then
MsgBox "Import successful!", vbExclamation, "IMPORT SUCCESSFUL"
Else
MsgBox "Import unsuccessful!", vbCritical, "IMPORT UNSUCCESSFUL"
End If

ExitHere:
Exit Sub

HandleErrors:
MsgBox "Error: " & Err.DESCRIPTION & " (" & Err.Number & ")"
Resume ExitHere

Exit Sub

End Sub

Private Function ImportBusinessUnitCapex(sFileName As String, sSource As
String, sBusinessUnit As String, sYear As String) As Boolean

Dim sSQL As String, sWhere As String
Dim bWhere As Boolean
Dim sTable(11) As String
Dim J As Byte

On Error GoTo Err_ImportBusinessUnitCapex

'Initialize
sTable(9) = "AFE_DOLLARS"
sTable(10) = "AFE_DOLLARS_OTHER"
sTable(11) = "CURRENT_AFE_LIST"

'Build the Where clause
sWhere = ""
bWhere = False

'Source
If sSource <> "**ALL**" Then
sWhere = " WHERE [SOURCE] = '" & sSource & "'"
bWhere = True
End If

'Business Unit
If sBusinessUnit <> "**ALL**" Then
If bWhere Then
sWhere = sWhere & " AND [REGION] = '" & sBusinessUnit & "'"
Else
sWhere = " WHERE [REGION] = '" & sBusinessUnit & "'"
bWhere = True
End If
End If

'Project Year
If sYear <> "**ALL**" Then
If bWhere Then
sWhere = sWhere & " AND [PROJECT_YEAR] = " & sYear
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11354
Else
sWhere = " WHERE [PROJECT_YEAR] = " & sYear
bWhere = True
End If
End If

'Add the ALLOW_DELETE part
'goofy 2002.08.02 sWhere = sWhere & IIf(InStr(sWhere, "WHERE") > 0, " AND
", " WHERE ") & " [ALLOW_DELETE] = Yes;"

'Delete old AFE related records and import new ones
'=============
DoCmd.SetWarnings False

'Get the AFE data
bOK = GetCurrentAFEList(Me!txtResults, "AFE_DOLLARS",
"IRR_AFE_DOLLARS", sWhere)

DoCmd.SetWarnings True

'Modify certain AFE names with Business Unit names as suffixes
Modify_AFE_Suffixes

'OK
ImportBusinessUnitCapex = True

Exit Function

Err_ImportBusinessUnitCapex:
MsgBox "Error: " & Err.DESCRIPTION & " (" & Err.Number & ")"
ImportBusinessUnitCapex = False
Resume Next

End Function




"John Vinson" wrote:

> On Tue, 13 Jun 2006 1202 -0700, Dtown Dawg
> wrote:
>
> >Where is table "XYZ" getting or trying to get its information?
> >

>
> As phrased, the question's only answer is "from table XYZ".
>
> A table is a static object; it doesn't "get" information from
> anywhere, other objects (forms, reports, queries) get information from
> it!
>
> What "something" are you offering in exchange? Analyzing the structure
> of a database can be pretty easy or an absolute nightmare, depending
> on how well it was designed and commented; I'd be reluctant to offer
> without some more information!
>
> John W. Vinson[MVP]
>

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism Who is "Mohan"?
Today 06:52 AM
21 Replies, 319 Views
sikhism need urgent advice.......
Today 06:46 AM
6 Replies, 72 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 45 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 112 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,833 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 225 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 39 Views
sikhism How important is Matha...
By Ishna
Yesterday 19:05 PM
58 Replies, 1,026 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 62 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 43 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 45 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 408 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 46 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 07:23 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.53550 seconds with 30 queries