Re: Field Size: Integer to Double
- From: "Klatuu" <david.hargis@xxxxxxxxxxxx>
- Date: Thu, 6 Nov 2008 10:05:37 -0600
If instead of the RunSQL, you use the faster Currentdb.Execute, you don't
have to bother with SetWarnings. They will not fire.
Currentdb.Execute "ALTER TABLE WOLABOR ALTER COLUMN L_RUNHRS DOUBLE;",
dbFailOnError
"Bre-x" <mamani@xxxxxxxx> wrote in message
news:OdoTdy5PJHA.4680@xxxxxxxxxxxxxxxxxxxxxxx
Actually, this would to the trick
DoCmd.SetWarnings False
DoCmd.RunSQL "ALTER TABLE WOLABOR ALTER COLUMN L_RUNHRS DOUBLE;"
DoCmd.SetWarnings True
Thank you all!!
"Bre-x" <mamani@xxxxxxxx> wrote in message
news:uTrXOQ5PJHA.496@xxxxxxxxxxxxxxxxxxxxxxx
I have this function to download data from a Pervasive SQL into MS Access
Public Function get_hrs(WOPRE As Double, WOSUF As Double)
Dim sql As String
sql = "SELECT * FROM WOLABOR WHERE MTWOLA_WOPRE = " & WOPRE & " And
MTWOLA_WOSUF = " & WOSUF
CurrentDb.QueryDefs("DBA").sql = sql
DoCmd.SetWarnings False
DoCmd.RunSQL "SELECT DBA.* INTO WOLABOR FROM DBA;"
DoCmd.SetWarnings True
End Function
On my new WOLABOR table I have several Fields that are Data Type = Number
and Field Size = Integer
using VBA or any other method can I change it to "Double"?
Thank you all
Bre-x
.
- References:
- Field Size: Integer to Double
- From: Bre-x
- Re: Field Size: Integer to Double
- From: Bre-x
- Field Size: Integer to Double
- Prev by Date: Re: Nz function not working
- Next by Date: Re: Autonumbers [WAS: Re: How can we have a field assign a num. automaticly starting with 29]
- Previous by thread: Re: Field Size: Integer to Double
- Next by thread: FIlter subform on time-range defined by mainform cboTimeRangeSelec
- Index(es):
Relevant Pages
|