报告的多选图像 - 创建数组? [英] Multi-select images for report - create array?

查看:47
本文介绍了报告的多选图像 - 创建数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在表单上有10个未绑定的图像控件,每个下面都有一个绑定的单选按钮。在我的报告中,我有5个未绑定的图像控件。用户在表单上选择多个图像,最多选择5个。让我们假设表示表单上图像控件的单选按钮命名为1-10。我们还假设报告上的图像控件命名为A,B,C,D,E。在所有情况下,报表上的图像控件A将包含图像1,图像控件B将包含图像2.对于C, D和E他们将从表单中显示剩余的选定图像。如何订购这些图像并不重要。如何将剩余的所选图像动态分配给报告中的图像控件C,D和E?

I have 10 unbound image controls on a form and below each I have a bound radio button. On my report, I have 5 unbound image controls. The user selects multiple images on the form with a maximum of 5 selections. Let''s assume the radio buttons representing the image controls on the form are named 1-10. Let''s also assume the image controls on the report are named A, B, C, D, E. In all cases, image control A on the report will contain image 1 and image control B will contain image 2. For C, D and E they would display the remaining selected images from the form. How these images are ordered is not important. How can I dynamically assign the remaining selected images to image controls C, D and E on the report?

推荐答案

您的单选按钮似乎已绑定,但您不能告诉我们他们必须做什么。这似乎是一个公平的假设,这必须是无关紧要的。没有绑定任何图像控件。这可能是Access,但您已明确决定不在此问题中使用任何与数据库有关的内容。这将使您获得标准的程序逻辑。


处理表单以确定需要哪些图像,并使用您的代码将其设置到报告中的可用图像控件中。这是非标准的,但它与这方面的问题相符。
Your radio buttons are bound it seems, but you don''t tell us what they''re bound to. It seems a fair assumption that this must be irrelevant. None of the image controls is bound. This may be Access, but you''ve clearly decided not to use anything to do with a database in this question. That leaves you with standard program logic.

Process through the form to determine which images are required and set those, with your code, into the available image controls on the report. It''s very non-standard, but it matches the question in that respect.


单选按钮被绑定到表中的10个字段,其中包含指向外部图像的路径(上面的图像)每种情况下的单选按钮)。图像只是在表单上,​​以便为用户提供他们所选内容的参考。我不明白我是如何使图像控制C的。在我的报告显示,有时,图像3和其他时间显示图像6。
The radio buttons are bound to 10 fields in a table with paths to external images (the image above the radio button in each case). The images are simply on the form to give the user a reference to what they are selecting. I do not understand how I can make image control "C" on my report show, at times, image 3 and other times show image 6.


Tuxalot:

单选按钮绑定到表格中的10个字段,其中包含外部图像的路径(每种情况下单选按钮上方的图像)。
Tuxalot:
The radio buttons are bound to 10 fields in a table with paths to external images (the image above the radio button in each case).



这没有意义,而且确实需要。什么类型的文本字段可以绑定到RadioButton控件?


我得到的其余部分,但不知道你的实际位置更好,我无法正确建议。


如果我们正在处理表中的记录,那么该方法与您最初描述的方法完全不同(假设您的设计甚至完全支持它)。

This doesn''t make sense, and it really needs to. What type of text field can be bound to a RadioButton control?

The rest of it I got, but without knowing your actual position better I cannot advise correctly.

If we''re dealing with records in a table then the approach is totally different from what you described initially (assuming your design even supports it at all).


这篇关于报告的多选图像 - 创建数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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