It looks like it would take a bit of work to strip out the company
specific information and non-relevant queries and reports, but the
needed query is pretty straightforward. Here is the sql statement:
SELECT PUB_CostPart.PartNum, PUB_CostPart.StdMaterialCost,
tblNewStandards.NewStandardCost
FROM PUB_CostPart LEFT JOIN tblNewStandards ON PUB_CostPart.PartNum =
tblNewStandards.PartNum
WHERE (((PUB_CostPart.GroupID)="FY08Stds") AND
((PUB_CostPart.TypeCode)="P"));
As you can see I link to the CostPart table which stores the cost set
entry part information. I then created my own table with the new
standard cost.
I hope this is enough information to get your started.
Butch
________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Toby Boogerd
Sent: Wednesday, October 24, 2007 9:29 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Automate Data Entry into Vantage 6.1 With Outside
Program/Database
would it be possible for you to upload your database to the user group?
The code is nice but we can't see your fields or what is in the query
you are referencing.
Toby Boogerd
Information Systems
712-324-4854 x1119
NOTICE: This email may contain confidential and proprietary information
of Rosenboom Machine & Tool, Inc. By opening any enclosed files, the
recipient agrees not to use, reproduce, disclose, or manufacture its
contents, in whole or in part, without prior written consent of
Rosenboom Machine & Tool, Inc.
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Butch Menge
Sent: Wednesday, October 24, 2007 11:27 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Automate Data Entry into Vantage 6.1 With Outside
Program/Database
There has been several good solutions posted about automation. I use
Microsoft Access for mine. As an example, we recently had to update our
standards costs in Cost Set Entry so here is the code to automate the
data entry (what a life saver too because we had to enter them several
times because of master part table errors that needed to be fixed):
Public Function AdjustStandards()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("qryStandardCostAutomation")
AppActivate "Cost Set Entry - Group FY08 Standards", False
'Move to first field
SendKeys "{Tab}", True
Wait (2)
While Not rs.EOF
If rs!StdMaterialCost <> Nz(rs!NewStandardCost,
rs!StdMaterialCost) Then
SendKeys rs!NewStandardCost, True
End If
SendKeys "{Enter}", True
Wait 0.1
rs.MoveNext
Wend
End Function
Sub Wait(PauseTime)
Dim Start
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
DoEvents ' Let other processes run
Loop
End Sub
Hope this helps,
Butch
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of John
Sent: Wednesday, October 24, 2007 9:04 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Automate Data Entry into Vantage 6.1 With Outside
Program/Database
Does anyone have a solution for entering data automatically into
Vantage 6.1 with some kind of outside program and data source. We do
several inventory transfers a day and they are already collected into
an outside database. I would like a way to automatically enter them
into Vantage to eliminate the work of typing them in again. Right now
our solution is a program that works like a "SendKeys" macro, but it is
not really error proof. I didn't know if there is a way to create a VB
form or evan a VB program that would read from the outside file and
interface with the transfer screen. Maybe this is a dead horse, but I
am new to the user group and couldn't find any threads about this topic.
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
specific information and non-relevant queries and reports, but the
needed query is pretty straightforward. Here is the sql statement:
SELECT PUB_CostPart.PartNum, PUB_CostPart.StdMaterialCost,
tblNewStandards.NewStandardCost
FROM PUB_CostPart LEFT JOIN tblNewStandards ON PUB_CostPart.PartNum =
tblNewStandards.PartNum
WHERE (((PUB_CostPart.GroupID)="FY08Stds") AND
((PUB_CostPart.TypeCode)="P"));
As you can see I link to the CostPart table which stores the cost set
entry part information. I then created my own table with the new
standard cost.
I hope this is enough information to get your started.
Butch
________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Toby Boogerd
Sent: Wednesday, October 24, 2007 9:29 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Automate Data Entry into Vantage 6.1 With Outside
Program/Database
would it be possible for you to upload your database to the user group?
The code is nice but we can't see your fields or what is in the query
you are referencing.
Toby Boogerd
Information Systems
712-324-4854 x1119
NOTICE: This email may contain confidential and proprietary information
of Rosenboom Machine & Tool, Inc. By opening any enclosed files, the
recipient agrees not to use, reproduce, disclose, or manufacture its
contents, in whole or in part, without prior written consent of
Rosenboom Machine & Tool, Inc.
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Butch Menge
Sent: Wednesday, October 24, 2007 11:27 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Automate Data Entry into Vantage 6.1 With Outside
Program/Database
There has been several good solutions posted about automation. I use
Microsoft Access for mine. As an example, we recently had to update our
standards costs in Cost Set Entry so here is the code to automate the
data entry (what a life saver too because we had to enter them several
times because of master part table errors that needed to be fixed):
Public Function AdjustStandards()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("qryStandardCostAutomation")
AppActivate "Cost Set Entry - Group FY08 Standards", False
'Move to first field
SendKeys "{Tab}", True
Wait (2)
While Not rs.EOF
If rs!StdMaterialCost <> Nz(rs!NewStandardCost,
rs!StdMaterialCost) Then
SendKeys rs!NewStandardCost, True
End If
SendKeys "{Enter}", True
Wait 0.1
rs.MoveNext
Wend
End Function
Sub Wait(PauseTime)
Dim Start
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
DoEvents ' Let other processes run
Loop
End Sub
Hope this helps,
Butch
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of John
Sent: Wednesday, October 24, 2007 9:04 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Automate Data Entry into Vantage 6.1 With Outside
Program/Database
Does anyone have a solution for entering data automatically into
Vantage 6.1 with some kind of outside program and data source. We do
several inventory transfers a day and they are already collected into
an outside database. I would like a way to automatically enter them
into Vantage to eliminate the work of typing them in again. Right now
our solution is a program that works like a "SendKeys" macro, but it is
not really error proof. I didn't know if there is a way to create a VB
form or evan a VB program that would read from the outside file and
interface with the transfer screen. Maybe this is a dead horse, but I
am new to the user group and couldn't find any threads about this topic.
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]