VBA - > VB帮助 [英] VBA -> VB Help

查看:89
本文介绍了VBA - > VB帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,

我在VBA(访问)中有以下代码并且它可以工作,但我需要在Visual Basic(Visual Studio 2008)中执行相同的操作。到目前为止,我得到的最好的是在按钮上有静态链接。 (没有代码在我身上,所以我看不到我用过的东西)


这段代码的目标是有3个文本字段来填写点击其中一个按钮,它将为该客户端打开正确的PDF,因为ProjectID,Lastname和ClientID

hey all,
i have the following code in VBA (access) and it works but i need to have similar code in Visual Basic (Visual Studio 2008) that does the same thing. so far the best i got was to have static links on the button. (don''t have code on me atm so i can''t see what i used)

the goal of this code is to have 3 text fields to fill out the click on one of the buttons and it will open the correct PDF for that client given the ProjectID, Lastname and ClientID

展开 | 选择 | Wrap | 行号

推荐答案

我不确定你遇到的确切问题,但我能看到的最简单的方法是从COM导入''microsoft internet controls''然后使用类似的东西 -


I am not sure of the exact issue you are having but the easiest way that I can see is to import '' microsoft internet controls '' from COM and then use something like -


展开 | 选择 | Wrap | 行号


我确实尝试使用''System.Windows.Forms.WebBrowser''但我无法显示它但可能是我遗漏了一些东西:)
I did try to use '' System.Windows.Forms.WebBrowser '' but I could not get it to show but that might have been me missing something :)


抱歉问题太糟糕了,但它基本上是试图根据用户输入打开PDF但我已经解决了,下面的代码更好地解释它。


第一个是访问权限,第二个是Visual Studio 2008.
sorry question was so bad but it was basicly trying to open a PDF depending on user input but i worked it out, code is below to explain it a bit better.

1st one is in access and 2nd is in Visual studio 2008.
展开 | 选择 | Wrap | 行号


这篇关于VBA - > VB帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆