I would have expected this IF statement to trap a Null, but apparently it doesn't work that way. The execution fell right down to the ELSE and executes the next statement. Any idea how to do make it work?
Robert
![]()
I would have expected this IF statement to trap a Null, but apparently it doesn't work that way. The execution fell right down to the ELSE and executes the next statement. Any idea how to do make it work?
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Try "vbNull" instead. (Cant test as I dont have VB on this machine!)Originally Posted by Demon
Last edited by Demon; - 4th October 2016 at 17:56.
Keith
www.diyha.co.uk
www.kat5.tv
Thank you!
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
-----------------------------------------------------
Dim ptrProfile as Long
Dim dbProfile As Database
Set dbProfile = OpenDatabase(strPath & "\" & strFilename)
Dim rsProfile As Recordset
Set rsProfile = dbProfile.OpenRecordset("tblProfile")
rsProfile.AddNew
rsProfile!Description = "bla bla bla"
rsProfile.Update
ptrProfile = rsProfile!ptrMenu <-- Primary key, Autonum
-----------------------------------------------------
According to one of my Access books this should place the new key into ptrProfile but it doesn't.
Am I supposed to set special parameters for update? Like UpdateNow or something like that? I see references to Cursor Types and Record Locks but I can't figure how to use them.
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Hi,
Try that.
Best regards,
Luciano
Code:rsProfile.AddNew rsProfile!Description = "bla bla bla" ptrProfile = rsProfile!ptrMenu rsProfile.Update
Last edited by Luciano; - 31st August 2006 at 21:02.
Thanks.
I got the SendKeys sample from the Help file working nicely:
AppActivate Shell("calc.exe", 1)
For I = 1 To 100
SendKeys I & "{+}", True
Next I
SendKeys "=", True
SendKeys "%{F4}", True
How could I modify it so that I don't hardcode the executable? I'd like to be able to chose what running application gets focus.
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Bookmarks